File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,44 +2,25 @@ name: NPM Publish
22
33on :
44 release :
5- types : [published]
5+ types : [ published ]
66
77permissions :
88 id-token : write
99 contents : read
10- packages : write
1110
1211jobs :
1312 publish :
1413 runs-on : ubuntu-latest
1514 steps :
1615 - uses : actions/checkout@v4
17-
18- - run : rm -rf .npmrc
19-
20- - name : Install pnpm
21- uses : pnpm/action-setup@v4
22- with :
23- version : 10
24- run_install : true
25-
2616 - name : Install Node.js
2717 uses : actions/setup-node@v4
2818 with :
2919 node-version : ' 24'
3020 registry-url : https://registry.npmjs.org
31-
3221 - name : Install dependencies
33- run : pnpm install
34-
22+ run : npm install
3523 - name : Build
36- run : pnpm run build
37-
38- - name : Verify OIDC authentication (diagnostic)
39- # If OIDC trust is configured on npm this should print the npm username.
40- # Keep permissive so it won't fail the job if whoami doesn't return.
41- run : |
42- npm whoami || pnpm whoami || true
43-
24+ run : npm run build
4425 - name : Publish to npm (via OIDC)
45- run : pnpm publish --provenance --access public --no-git-checks
26+ run : npm publish --provenance --access public
You can’t perform that action at this time.
0 commit comments