Skip to content

Commit 447f93f

Browse files
committed
Use npm trusted publishing
1 parent 545b5dd commit 447f93f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
runs-on: ubuntu-latest
1717
permissions:
1818
contents: read
19+
id-token: write
1920
steps:
2021
- uses: actions/checkout@v6
2122

2223
- uses: actions/setup-node@v6
2324
with:
24-
node-version: 22
25+
node-version: 24
2526
registry-url: https://registry.npmjs.org
2627
cache: npm
2728

@@ -32,6 +33,4 @@ jobs:
3233
run: npm pack --dry-run
3334

3435
- if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && !inputs.dry_run)
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3736
run: npm publish

0 commit comments

Comments
 (0)