Skip to content

Commit 8e3751e

Browse files
committed
ci: use node version from .nvmrc for github actions
1 parent 5011ec5 commit 8e3751e

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
java-version: '21'
2626
- uses: actions/setup-node@v6
2727
with:
28-
node-version: '22.2.0 '
28+
node-version-file: '.nvmrc'
2929
registry-url: 'https://artifacts.itemis.cloud/repository/npm-open/'
3030
scope: '<@modelix>'
3131
- name: Build

.github/workflows/dry-run-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: git checkout -b main
2828
- uses: actions/setup-node@v6
2929
with:
30-
node-version: '22.2.0 '
30+
node-version-file: '.nvmrc'
3131
registry-url: 'https://artifacts.itemis.cloud/repository/npm-open/'
3232
scope: '<@modelix>'
3333
- name: Cache Node packages

.github/workflows/mps-compatibility.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Use Node.js
3434
uses: actions/setup-node@v6
3535
with:
36-
node-version: 22.2.0
36+
node-version-file: '.nvmrc'
3737
- name: Build
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v5
1717
- uses: actions/setup-node@v6
1818
with:
19-
node-version: '22.2.0 '
19+
node-version-file: '.nvmrc'
2020
registry-url: 'https://artifacts.itemis.cloud/repository/npm-open/'
2121
scope: '<@modelix>'
2222
- name: Set up JDK

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
token: ${{ secrets.RELEASE_TOKEN }}
1818
- uses: actions/setup-node@v6
1919
with:
20-
node-version: '22.2.0 '
20+
node-version-file: '.nvmrc'
2121
registry-url: 'https://artifacts.itemis.cloud/repository/npm-open/'
2222
scope: '<@modelix>'
2323
- name: Cache Node packages

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.20.0

0 commit comments

Comments
 (0)