Skip to content

Commit 83d01a6

Browse files
thephezclaude
andcommitted
ci: use .nvmrc node version in dependency-update and deploy workflows
Point the remaining workflows at node-version-file: .nvmrc instead of a hardcoded version so all CI runs on the repo-pinned Node, and log node/npm versions for diagnostics. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 35a1d45 commit 83d01a6

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/dependency-update.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
- name: Set up Node.js
2323
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2424
with:
25-
node-version: '20'
25+
node-version-file: .nvmrc
26+
27+
- name: Show Node/npm versions
28+
run: |
29+
node -v
30+
npm -v
2631
2732
# Step 3: Install dependencies
2833
- name: Install Dependencies

.github/workflows/deploy-example-apps.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ jobs:
7070

7171
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7272
with:
73-
node-version: 24
73+
node-version-file: .nvmrc
7474
cache: npm
7575
cache-dependency-path: example-apps/${{ matrix.app }}/package-lock.json
7676

77+
- name: Show Node/npm versions
78+
run: |
79+
node -v
80+
npm -v
81+
7782
- name: Install
7883
run: npm ci
7984
working-directory: example-apps/${{ matrix.app }}
@@ -113,7 +118,12 @@ jobs:
113118

114119
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
115120
with:
116-
node-version: 24
121+
node-version-file: .nvmrc
122+
123+
- name: Show Node/npm versions
124+
run: |
125+
node -v
126+
npm -v
117127
118128
- name: Download all built apps
119129
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

0 commit comments

Comments
 (0)