Skip to content

Commit bf6ac3b

Browse files
ci: Adapt publish.yaml to use npm's trusted publishing
- Add comment to clarify id-token: write permission - Remove obsolete usage of NPM auth token
1 parent 016f1df commit bf6ac3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
publish:
2525
permissions:
2626
contents: 'write'
27-
id-token: 'write'
27+
id-token: 'write' # Required for npm OIDC
2828
runs-on: 'ubuntu-latest'
2929
steps:
3030
- uses: 'actions/checkout@v4'
@@ -87,5 +87,4 @@ jobs:
8787
if: github.event.inputs.skip_publish == 'false'
8888
run: "pnpm publish --recursive ${{ github.event.inputs.stable_release == 'true' && ' ' || '--tag next' }}"
8989
env:
90-
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
9190
NPM_CONFIG_PROVENANCE: 'true'

0 commit comments

Comments
 (0)