Skip to content

Commit a6721cd

Browse files
committed
fix(ci): add pnpm/action-setup before setup-node in npm-rust-publish, set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24
1 parent c9ed823 commit a6721cd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/npm-rust-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ permissions:
1616

1717

1818

19+
env:
20+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
21+
1922
defaults:
2023
run:
2124
shell: bash
@@ -160,6 +163,10 @@ jobs:
160163
echo "Built: ${BUILT_VERSION}, Expected: ${version}"
161164
[ "$BUILT_VERSION" = "${version}" ] || { echo "Version mismatch!"; exit 1; }
162165
166+
- name: Install pnpm
167+
if: steps.platform-package.outputs.published != 'true'
168+
uses: pnpm/action-setup@v4
169+
163170
- name: Install Node
164171
if: steps.platform-package.outputs.published != 'true'
165172
uses: actions/setup-node@v5
@@ -194,6 +201,9 @@ jobs:
194201
- name: Checkout
195202
uses: actions/checkout@v5
196203

204+
- name: Install pnpm
205+
uses: pnpm/action-setup@v4
206+
197207
- name: Install Node
198208
uses: actions/setup-node@v5
199209
with:

0 commit comments

Comments
 (0)