Skip to content

Commit 48144aa

Browse files
authored
Update npmpublish to follow new npm rules (#660)
1 parent df4ae5b commit 48144aa

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/npmpublish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Node.js Package
52

63
on:
@@ -10,6 +7,9 @@ on:
107
jobs:
118
publish-npm:
129
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
1313
steps:
1414
- uses: actions/checkout@v6
1515
- name: Install jq tool
@@ -18,9 +18,7 @@ jobs:
1818
sudo apt-get install jq
1919
- uses: actions/setup-node@v6
2020
with:
21-
node-version: 16
21+
node-version: 20
2222
registry-url: https://registry.npmjs.org/
2323
- run: npm ci
24-
- run: npm publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
24+
- run: npm publish

0 commit comments

Comments
 (0)