File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,29 @@ name: Release (npm)
22
33on :
44 push :
5- tags : [ 'v*.*.*' ]
5+ tags : [ 'v*.*.*' ] # push a tag like v0.0.1 to trigger
66
77jobs :
88 publish :
99 runs-on : ubuntu-latest
1010 permissions :
1111 contents : read
12- id-token : write
12+ id-token : write # for --provenance; remove if you don't want it
1313 steps :
1414 - uses : actions/checkout@v4
15+
1516 - uses : actions/setup-node@v4
1617 with :
1718 node-version : ' 20'
18- cache : ' pnpm'
19- cache-dependency-path : ../../pnpm-lock.yaml
2019 registry-url : ' https://registry.npmjs.org'
21- - run : corepack enable
22- - run : pnpm install --frozen-lockfile
23- - run : pnpm build
20+
21+ - name : Install (pnpm via npx)
22+ run : npx -y pnpm@9 install --frozen-lockfile
23+
24+ - name : Build
25+ run : npx -y pnpm@9 build
26+
2427 - name : Publish to npm
25- run : npm publish dist --access public
28+ run : npm publish dist --access public --provenance
2629 env :
2730 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments