Skip to content

Commit 1bd7b97

Browse files
authored
Update publish workflow to use latest actions and permissions
1 parent 1a709f7 commit 1bd7b97

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
@@ -9,18 +9,19 @@ on:
99
jobs:
1010
publish-npm:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
id-token: write
1215
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1518
with:
16-
node-version: 14
19+
node-version: 24
1720
registry-url: https://registry.npmjs.org/
1821
cache: npm
1922
- run: npm ci
2023
- run: npm test
2124
- run: npm version ${TAG_NAME} --git-tag-version=false
2225
env:
2326
TAG_NAME: ${{ github.event.release.tag_name }}
24-
- run: npm whoami; npm --ignore-scripts publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
27+
- run: npm --ignore-scripts publish --provenance

0 commit comments

Comments
 (0)