File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Publish
33on :
44 workflow_dispatch :
55
6+ permissions :
7+ id-token : write # Required for OIDC
8+ contents : read
9+
610jobs :
711 release :
812 if : github.ref == 'refs/heads/main'
@@ -15,21 +19,16 @@ jobs:
1519 - name : Install pnpm
1620 uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
1721
18- - name : Set node version to 22
22+ - name : Set node version to 24
1923 uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2024 with :
21- node-version : 22.22.0
25+ node-version : 24
2226 cache : ' pnpm'
2327
2428 - name : Prepare
2529 run : pnpm install --frozen-lockfile
2630
27- - name : Set publishing config
28- run : pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
29- env :
30- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
31-
3231 - name : Publish
3332 run : |
3433 PACKAGE_DIST_TAG=$(node -e "console.log(/^\d+\.\d+\.\d+(\-(\w+)\.\d+)$/.exec(require('./package.json').version)?.[2] || 'latest')")
35- pnpm publish --access public --tag $PACKAGE_DIST_TAG
34+ pnpm publish --access public --tag $PACKAGE_DIST_TAG --provenance
You can’t perform that action at this time.
0 commit comments