Skip to content

Commit 1744730

Browse files
ci: update publish github action
1 parent ecd4c2d commit 1744730

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
name: Publish Package to npmjs
2+
23
on:
34
release:
45
types: [created]
6+
7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
511
jobs:
6-
build:
12+
publish:
713
runs-on: ubuntu-latest
814
steps:
9-
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1217
with:
13-
node-version: '18'
18+
node-version: '24'
1419
cache: 'npm'
1520
registry-url: 'https://registry.npmjs.org'
1621
- run: npm ci
17-
- run: npm publish
18-
env:
19-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
- run: npm publish

0 commit comments

Comments
 (0)