Skip to content

Commit eaba10a

Browse files
authored
Install Node.js version from .nvmrc in jobs (maplibre#3654)
1 parent 4c0ec62 commit eaba10a

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

.github/workflows/pr-bloaty-ios.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
with:
24-
sparse-checkout: .github
24+
sparse-checkout: |
25+
.github
26+
.nvmrc
27+
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version-file: '.nvmrc'
31+
32+
- run: npm install
2533

2634
- name: Get parent workflow result
2735
id: parent_workflow

.github/workflows/pr-linux-tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626
with:
27-
sparse-checkout: .github
27+
sparse-checkout: |
28+
.github
29+
.nvmrc
30+
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version-file: '.nvmrc'
34+
35+
- run: npm install
2836

2937
- name: Get parent workflow result
3038
id: parent_workflow

.github/workflows/upload-coverage.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
17-
sparse-checkout: .github
17+
sparse-checkout: |
18+
.github
19+
.nvmrc
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version-file: '.nvmrc'
24+
25+
- run: npm install
1826

1927
- name: Get parent workflow result
2028
id: parent_workflow

0 commit comments

Comments
 (0)