Skip to content

Commit d6dde5f

Browse files
authored
Merge pull request #1901 from progfay/npm-publish-oidc
publish package for npm with OIDC
2 parents 353e153 + 23f6374 commit d6dde5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: write
20-
id-token: write # The OIDC ID token is used for authentication with JSR.
20+
id-token: write # The OIDC ID token is used for authentication with npm / JSR.
2121
steps:
2222
- uses: actions/[email protected]
2323
- uses: actions/[email protected]
2424
with:
25+
node-version: '20'
2526
registry-url: 'https://registry.npmjs.org'
2627
- name: Publish package
2728
run: |
@@ -46,4 +47,3 @@ jobs:
4647
git push
4748
env:
4849
NEW_VERSION: ${{ inputs.new_version }}
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)