Skip to content

Commit e2edd3a

Browse files
committed
ci(workspaces): fix actions/setup-node to use correct versions of node and yarn
1 parent bb7a949 commit e2edd3a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v1
1111
- name: Use Node.js 20.x
12-
uses: actions/setup-node@v1
12+
uses: actions/setup-node@v6
1313
with:
14-
node-version: 20.x
14+
node-version-file: '.nvmrc'
15+
- run: corepack enable
1516
- run: yarn install
1617
- run: yarn lint-test
1718

@@ -22,8 +23,9 @@ jobs:
2223
steps:
2324
- uses: actions/checkout@v1
2425
- name: Use Node.js 20.x
25-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v6
2627
with:
27-
node-version: 20.x
28+
node-version-file: '.nvmrc'
29+
- run: corepack enable
2830
- run: yarn install
2931
- run: yarn build

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v1
13+
- uses: actions/setup-node@v6
1414
with:
15-
node-version: 20
15+
node-version-file: '.nvmrc'
1616
registry-url: https://registry.npmjs.org/
17+
- run: corepack enable
1718
- run: yarn
1819
- run: yarn lint-test
1920
- run: yarn build

0 commit comments

Comments
 (0)