Skip to content

Commit 8681c1b

Browse files
committed
ci: upgrade generated actions to Node 24 runtime
1 parent f602329 commit 8681c1b

5 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
matrix:
1212
node-version: [22]
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515

16-
- uses: pnpm/action-setup@v4
16+
- uses: pnpm/action-setup@v6
1717
with:
1818
version: 10
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
cache: 'pnpm'

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
permissions:
1919
contents: write
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2222
with:
2323
token: ${{ secrets.GITHUB_TOKEN }}
2424

25-
- uses: pnpm/action-setup@v4
25+
- uses: pnpm/action-setup@v6
2626
with:
2727
version: 10
2828

29-
- uses: actions/setup-node@v4
29+
- uses: actions/setup-node@v6
3030
with:
3131
node-version: '22'
3232
registry-url: 'https://registry.npmjs.org'

.github/workflows/website.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
run:
2525
working-directory: website
2626
steps:
27-
- uses: actions/checkout@v4
28-
- uses: pnpm/action-setup@v4
27+
- uses: actions/checkout@v6
28+
- uses: pnpm/action-setup@v6
2929
with:
3030
version: 9
31-
- uses: actions/setup-node@v4
31+
- uses: actions/setup-node@v6
3232
with:
3333
node-version: '22'
3434
cache: 'pnpm'

src/cli/commands/ci.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function detectPkgManager(cwd: string): Promise<PkgManagerInfo> {
3535
return {
3636
id: 'pnpm',
3737
cacheKey: 'pnpm',
38-
setupAction: 'pnpm/action-setup@v4',
38+
setupAction: 'pnpm/action-setup@v6',
3939
installCmd: 'pnpm install --frozen-lockfile',
4040
};
4141
}
@@ -212,10 +212,10 @@ jobs:
212212
213213
steps:
214214
- name: Checkout
215-
uses: actions/checkout@v4
215+
uses: actions/checkout@v6
216216
217217
- name: Setup Node.js
218-
uses: actions/setup-node@v4
218+
uses: actions/setup-node@v6
219219
with:
220220
node-version: ${yamlSingleQuoted(nodeVersion)}
221221
cache: '${pm.cacheKey}'

tests/unit/ci-github.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,16 @@ describe('ci github', () => {
4949
const root = await temporaryDirectory('shipnode-ci-');
5050
await initialiseGitRepository(root);
5151
await writeFile(join(root, 'package.json'), JSON.stringify({ scripts: { build: 'tsc' } }));
52+
await writeFile(join(root, 'pnpm-lock.yaml'), 'lockfileVersion: 9.0\n');
5253

5354
await cmdCiGithub(root);
5455

5556
const workflow = await readWorkflow(root);
5657
expect(() => load(workflow)).not.toThrow();
5758
expect(workflow).toContain(`npm install -g ${await currentPackageSpec()}`);
59+
expect(workflow).toContain('uses: actions/checkout@v6');
60+
expect(workflow).toContain('uses: actions/setup-node@v6');
61+
expect(workflow).toContain('uses: pnpm/action-setup@v6');
5862
expect(workflow).not.toContain('paths:');
5963
expect(workflow).not.toContain('working-directory:');
6064
expect(workflow).not.toContain('- name: Build');

0 commit comments

Comments
 (0)