Skip to content

Commit 4ff37c5

Browse files
Update publish.yml
1 parent 42d6e9d commit 4ff37c5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ on:
1818
- 'major'
1919
default: 'patch'
2020
permissions:
21-
contents: write
22-
id-token: write
21+
id-token: write # Required for OIDC
22+
contents: read
2323

2424
jobs:
2525
publish-on-npm:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- name: Setup environment
3232
uses: actions/setup-node@v4
3333
with:
34-
node-version: 20
35-
registry-url: https://registry.npmjs.org/
34+
node-version: '24'
35+
registry-url: 'https://registry.npmjs.org'
3636

3737
- name: Versionate
3838
run: |
@@ -45,9 +45,7 @@ jobs:
4545

4646
- name: Publish to NPM
4747
# This command uses the GitHub OIDC token automatically
48-
run: npm publish --provenance --access public
49-
env:
50-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}
48+
run: npm publish
5149

5250
- name: Create PR
5351
uses: peter-evans/[email protected]

0 commit comments

Comments
 (0)