Skip to content

Commit 99139cd

Browse files
Update npm publish workflow for release event
1 parent 7e9ba50 commit 99139cd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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-
4-
name: Node.js Package
1+
name: Publish Package
52

63
on:
74
release:
8-
types: [created]
5+
types: [published]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
910

1011
jobs:
1112
publish-npm:
@@ -14,10 +15,8 @@ jobs:
1415
- uses: actions/checkout@v4
1516
- uses: actions/setup-node@v4
1617
with:
17-
node-version: 22
18+
node-version: 24
1819
registry-url: https://registry.npmjs.org/
1920
- run: npm ci
2021
- run: npm run build
2122
- run: npm publish --access public
22-
env:
23-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)