Skip to content

Commit 226b188

Browse files
authored
Merge pull request #520 from guardian/ts/update-npm-ci
feat: use nvmrc file for node version
2 parents a9a5161 + 79e14d6 commit 226b188

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/trigger-private-janus-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install Node
3030
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
3131
with:
32-
node-version: '22' # Ensure this matches the version in Janus: https://github.com/guardian/janus/blob/main/.nvmrc
32+
node-version-file: '.nvmrc'
3333
cache: 'npm'
3434
cache-dependency-path: 'frontend/package-lock.json'
3535

.nvmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ensure this matches the version in Janus: https://github.com/guardian/janus/blob/main/.nvmrc
2+
22

0 commit comments

Comments
 (0)