Skip to content

Commit 0511e1d

Browse files
authored
fix(ci): bump pnpm/action-setup to v6.1.0 for pnpm 12 (#955)
Windows setup-node cache failed on broken legacy @pnpm/exe shims after the pnpm 12 upgrade; v6.1.0 uses the native bootstrap.
1 parent 51431f3 commit 0511e1d

8 files changed

Lines changed: 11 additions & 8 deletions

File tree

‎.github/actions/setup-node-pnpm/action.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ runs:
1111
using: composite
1212
steps:
1313
- name: Setup pnpm
14-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
14+
# pnpm/action-setup v6.1.0 (pnpm 12 native bootstrap; older pins break Windows store path)
15+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
1516

1617
- name: Setup Node
1718
# actions/setup-node v6.5.0

‎.github/workflows/build.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/checkout@v6
6666

6767
- name: Setup pnpm
68-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
68+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
6969

7070
- name: Install Node.js
7171
uses: actions/setup-node@v6

‎.github/workflows/buttonmash.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
persist-credentials: false
2929

3030
- name: Setup pnpm
31-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
31+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
3232

3333
- name: Setup Node
3434
# actions/setup-node v6.5.0

‎.github/workflows/cut-release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
persist-credentials: true
7373

7474
- name: Setup pnpm
75-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
75+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
7676

7777
- name: Setup Node
7878
uses: actions/setup-node@v6

‎.github/workflows/e2e.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
persist-credentials: false
3434

3535
- name: Setup pnpm
36-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
36+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
3737

3838
- uses: actions/setup-node@v6
3939
with:

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
ref: ${{ github.sha }}
139139

140140
- name: Setup pnpm
141-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
141+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
142142

143143
- name: Install Node.js
144144
uses: actions/setup-node@v6

‎.github/workflows/third-party-licenses.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
persist-credentials: false
3737

3838
- name: Setup pnpm
39-
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271
39+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
4040

4141
- name: Setup Node
4242
uses: actions/setup-node@v6

‎scripts/ci-workflows.test.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { describe, expect, it } from 'vitest';
77
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
88
const CHECKOUT_SHA = 'd23441a48e516b6c34aea4fa41551a30e30af803';
99
const SETUP_NODE_SHA = '249970729cb0ef3589644e2896645e5dc5ba9c38';
10+
/** pnpm/action-setup v6.1.0 — required for pnpm 12 native bootstrap (esp. Windows). */
11+
const PNPM_ACTION_SETUP_SHA = 'ea17c68df8912ef543352723c149a84f56e3d413';
1012

1113
function read(relativePath) {
1214
return fs.readFileSync(path.join(ROOT, relativePath), 'utf8');
@@ -51,7 +53,7 @@ describe('CI workflow contracts', () => {
5153
expect(testsWorkflow).toContain('cancel-in-progress: true');
5254
expect(ciWorkflow).toContain('uses: ./.github/actions/setup-node-pnpm');
5355
expect(testsWorkflow).toContain('uses: ./.github/actions/setup-node-pnpm');
54-
expect(setupAction).toContain('pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271');
56+
expect(setupAction).toContain(`pnpm/action-setup@${PNPM_ACTION_SETUP_SHA}`);
5557
expect(setupAction).toContain(`actions/setup-node@${SETUP_NODE_SHA}`);
5658
expect(setupAction).toContain("default: '22.23.2'");
5759
expect(setupAction).toContain('pnpm install --frozen-lockfile');

0 commit comments

Comments
 (0)