File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # This action will publish the package to npm and create a GitHub release.
21name : Release
32
43on :
109 workflow_dispatch :
1110
1211permissions :
13- contents : write
14- id-token : write
12+ contents : read
13+ id-token : write # Required for OIDC
1514
1615jobs :
1716 publish :
@@ -26,24 +25,13 @@ jobs:
2625 with :
2726 node-version : 24.15.0
2827
29- # Update npm to the latest version to enable OIDC
30- # Use corepack to install pnpm
31- - name : Setup Package Managers
28+ - name : Setup Pnpm
3229 run : |
33- npm install -g npm@latest
34- npm --version
3530 npm install -g corepack@latest --force
3631 corepack enable
3732
3833 - name : Install Dependencies
39- run : pnpm install
34+ run : pnpm i
4035
4136 - name : Publish
42- uses : JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4
43- with :
44- token : empty
45-
46- - name : Create GitHub Release
47- uses : ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
48- with :
49- generateReleaseNotes : ' true'
37+ run : pnpm stage publish --no-git-checks
Original file line number Diff line number Diff line change 4545 "optional" : true
4646 }
4747 },
48- "packageManager" : " pnpm@11.2.2 " ,
48+ "packageManager" : " pnpm@11.3.0 " ,
4949 "publishConfig" : {
5050 "access" : " public" ,
5151 "registry" : " https://registry.npmjs.org/"
You can’t perform that action at this time.
0 commit comments