Skip to content

Commit a75137f

Browse files
authored
Use node-version-file for setup-node (#1028)
1 parent dd57d41 commit a75137f

File tree

6 files changed

+16
-12345
lines changed

6 files changed

+16
-12345
lines changed

.github/workflows/next.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version-file: package.json
1818

1919
- name: Install dependencies
2020
run: yarn install
@@ -30,7 +30,7 @@ jobs:
3030

3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version: 18
33+
node-version-file: package.json
3434

3535
- name: Install dependencies
3636
run: yarn install

.github/workflows/vercel-preview.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version-file: package.json
23+
2024
- name: Install Vercel CLI
2125
run: npm install --global vercel@latest
2226

.github/workflows/vercel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: package.json
21+
1822
- name: Install Vercel CLI
1923
run: npm install --global vercel@latest
2024

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/.pnp
66
.pnp.js
77

8+
# Use yarn instead of npm
9+
package-lock.json
10+
811
# testing
912
/coverage
1013

0 commit comments

Comments
 (0)