Skip to content

Commit c8da67b

Browse files
authored
Update main.yaml
1 parent 21576c1 commit c8da67b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/main.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
tags:
55
- '*'
66

7+
permissions:
8+
id-token: write # Required for OIDC (https://docs.npmjs.com/trusted-publishers)
9+
contents: read
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
@@ -15,7 +19,8 @@ jobs:
1519
- name: Set up Node.js
1620
uses: actions/setup-node@v4
1721
with:
18-
node-version: '20'
22+
node-version: '24'
23+
registry-url: 'https://registry.npmjs.org'
1924

2025
- name: Install dependencies
2126
run: npm ci
@@ -34,13 +39,9 @@ jobs:
3439
fi
3540
3641
- name: Publish to npm (beta)
37-
env:
38-
NPM_TOKEN: ${{ secrets.NPM_ACCESS_KEY }}
3942
if: steps.is_tag_beta.outputs.is_beta == 'true'
4043
run: npm publish --tag beta
4144

4245
- name: Publish to npm
43-
env:
44-
NPM_TOKEN: ${{ secrets.NPM_ACCESS_KEY }}
4546
if: steps.is_tag_beta.outputs.is_beta == 'false'
4647
run: npm publish

0 commit comments

Comments
 (0)