Skip to content

Commit 3dde9f7

Browse files
committed
ci(workflow): switch from pnpm to npm in npm-publish workflow and simplify steps
1 parent ee9bab7 commit 3dde9f7

1 file changed

Lines changed: 4 additions & 23 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,25 @@ name: NPM Publish
22

33
on:
44
release:
5-
types: [published]
5+
types: [ published ]
66

77
permissions:
88
id-token: write
99
contents: read
10-
packages: write
1110

1211
jobs:
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

0 commit comments

Comments
 (0)