Install Node.js version from .nvmrc in jobs (#3654)

This commit is contained in:
Bart Louwers
2025-07-24 15:16:50 +02:00
committed by GitHub
parent 4c0ec62dc2
commit eaba10a468
3 changed files with 27 additions and 3 deletions

View File

@@ -21,7 +21,15 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
sparse-checkout: |
.github
.nvmrc
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm install
- name: Get parent workflow result
id: parent_workflow

View File

@@ -24,7 +24,15 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
sparse-checkout: |
.github
.nvmrc
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm install
- name: Get parent workflow result
id: parent_workflow

View File

@@ -14,7 +14,15 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
sparse-checkout: |
.github
.nvmrc
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm install
- name: Get parent workflow result
id: parent_workflow