File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,31 +12,30 @@ permissions:
1212jobs :
1313 build-and-publish :
1414 runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ id-token : write
1518 steps :
1619 - name : Checkout
17- uses : actions/checkout@v4
20+ uses : actions/checkout@v5
1821
1922 - name : Setup Bun
2023 uses : oven-sh/setup-bun@v2
2124 with :
22- bun-version : latest
25+ bun-version : ' latest'
2326
2427 - name : Install
2528 run : bun install --no-progress
2629
2730 - name : Build
2831 run : bun run build
2932
30- - name : Setup Node for npm publish
31- uses : actions/setup-node@v4
33+ - name : Publish
34+ uses : actions/setup-node@v5
3235 with :
33- node-version : 20
34- registry-url : ' https://registry.npmjs.org'
35-
36- - name : Publish (npm)
36+ node-version : " 24"
37+ registry-url : " https://registry.npmjs.org"
38+ - run : npm publish --provenance --ignore-scripts
3739 if : startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
3840 env :
39- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
40- run : npm publish --access public
41-
42-
41+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments