Skip to content

Commit d0b009e

Browse files
DavertMikclaude
andcommitted
ci: pin Node to 24 and install latest npm before any install/test step
Provenance generation needs an up-to-date npm; aligning on Node 24 matches the canonical CodeceptJS publish-beta workflow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 549099f commit d0b009e

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 22
21+
node-version: 24
2222

23+
- run: npm install -g npm@latest
2324
- run: npm install
2425
- run: npm test
2526

@@ -33,11 +34,11 @@ jobs:
3334

3435
- uses: actions/setup-node@v4
3536
with:
36-
node-version: 22
37+
node-version: 24
3738
registry-url: 'https://registry.npmjs.org'
3839

39-
- run: npm install
4040
- run: npm install -g npm@latest
41+
- run: npm install
4142

4243
- name: Set package version from release tag
4344
run: npm version "${{ github.event.release.tag_name }}" --no-git-tag-version

.github/workflows/run-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ jobs:
1818
unit-tests:
1919
name: Unit tests
2020
runs-on: ubuntu-latest
21-
strategy:
22-
matrix:
23-
node-version: [20.x, 22.x]
2421
steps:
2522
- uses: actions/checkout@v4
2623
- uses: actions/setup-node@v4
2724
with:
28-
node-version: ${{ matrix.node-version }}
25+
node-version: 24
26+
- run: npm install -g npm@latest
2927
- run: npm install
3028
- run: npm test

0 commit comments

Comments
 (0)