Skip to content

Commit 6d978d7

Browse files
committed
Convert NPM access to trusted publishing
1 parent 1708b70 commit 6d978d7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/npm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
@@ -12,6 +16,7 @@ jobs:
1216
- uses: actions/setup-node@v4
1317
with:
1418
node-version: 20
19+
- run: npm install -g npm@latest
1520
- run: npm ci
1621
- run: npm test
1722

@@ -26,5 +31,3 @@ jobs:
2631
registry-url: https://registry.npmjs.org/
2732
- run: npm ci
2833
- run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)