Skip to content

Commit 05a1690

Browse files
authored
Use pnpm for staged npm publishing
1 parent 6205bdc commit 05a1690

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ jobs:
6161
node-version: '24'
6262
registry-url: 'https://registry.npmjs.org'
6363

64-
- name: Update npm
65-
run: npm install -g npm@11.15.0
64+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
65+
with:
66+
version: 11.3.0
67+
run_install: false
6668

6769
- name: Validate package
6870
run: |
@@ -114,4 +116,4 @@ jobs:
114116
fi
115117
116118
- name: Publish to npm
117-
run: npm stage publish preact.tgz --provenance --access public --tag "${{ steps.dist-tag.outputs.tag }}"
119+
run: pnpm stage publish preact.tgz --provenance --access public --tag "${{ steps.dist-tag.outputs.tag }}"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "preact",
33
"amdName": "preact",
44
"version": "10.29.3",
5-
"packageManager": "pnpm@11.1.0",
5+
"packageManager": "pnpm@11.3.0",
66
"private": false,
77
"publishConfig": {
88
"access": "public",

0 commit comments

Comments
 (0)