Skip to content

Commit 59491d9

Browse files
committed
update release workflow
1 parent 261f2a5 commit 59491d9

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,22 @@ on:
77
release:
88
types: [created]
99

10-
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
- run: npm install --ignore-scripts --no-audit --no-fund
19-
- run: npm test
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
2013

14+
jobs:
2115
publish-npm:
2216
needs: build
2317
runs-on: ubuntu-latest
2418
steps:
2519
- uses: actions/checkout@v4
2620
- uses: actions/setup-node@v4
2721
with:
28-
cache: 'npm'
22+
node-version: 22
2923
registry-url: https://registry.npmjs.org/
24+
- run: npm install -g npm@latest
3025
- run: npm install --ignore-scripts --no-audit --no-fund
26+
- run: npm test
3127
- run: npm run build
32-
- run: npm publish --public
33-
env:
34-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28+
- run: npm publish --access public

0 commit comments

Comments
 (0)