Skip to content

Commit 4a590a5

Browse files
authored
Update publish.yml
1 parent 16f05a7 commit 4a590a5

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ on:
77
jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
1013
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 14
17+
node-version: 24
1518
registry-url: https://registry.npmjs.org/
1619
cache: npm
1720
- run: npm ci
1821
- run: npm test
1922
- run: npm version ${TAG_NAME} --git-tag-version=false
2023
env:
2124
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
23-
env:
24-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
25+
- run: npm --ignore-scripts publish --provenance

0 commit comments

Comments
 (0)