Skip to content

Commit af19b5c

Browse files
authored
chore: switch to npm staged publishing (#59)
1 parent 0cd49e7 commit af19b5c

2 files changed

Lines changed: 7 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This action will publish the package to npm and create a GitHub release.
21
name: Release
32

43
on:
@@ -10,8 +9,8 @@ on:
109
workflow_dispatch:
1110

1211
permissions:
13-
contents: write
14-
id-token: write
12+
contents: read
13+
id-token: write # Required for OIDC
1514

1615
jobs:
1716
publish:
@@ -22,28 +21,17 @@ jobs:
2221
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2322

2423
- name: Setup Node.js
25-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
24+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"optional": true
5858
}
5959
},
60-
"packageManager": "pnpm@11.2.2",
60+
"packageManager": "pnpm@11.3.0",
6161
"publishConfig": {
6262
"access": "public",
6363
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)