Skip to content

Commit bef5b66

Browse files
authored
chore: switch to npm staged publishing (#48)
1 parent b673fe1 commit bef5b66

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 17 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:
@@ -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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
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/"

0 commit comments

Comments
 (0)