Skip to content

Commit 961182f

Browse files
authored
chore: switch to npm OIDC publishing (#85)
1 parent 4d0f2ca commit 961182f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test-and-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
npm run test:ci
2727
release:
2828
name: Release
29+
permissions:
30+
contents: write
31+
id-token: write
2932
needs: test
3033
runs-on: ubuntu-latest
3134
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
@@ -38,6 +41,7 @@ jobs:
3841
uses: actions/setup-node@v6.2.0
3942
with:
4043
node-version: lts/*
44+
registry-url: 'https://registry.npmjs.org'
4145
- name: Install dependencies
4246
run: |
4347
npm install --no-progress --no-package-lock --no-save
@@ -58,6 +62,6 @@ jobs:
5862
- name: Release
5963
env:
6064
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
NPM_CONFIG_PROVENANCE: true
6266
run: npx semantic-release
6367

0 commit comments

Comments
 (0)