Skip to content

Commit cb2625c

Browse files
committed
ci(node.js): change order of tasks
1 parent 7956b8b commit cb2625c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23+
- name: Enable Corepack
24+
# Must run before setup-node's yarn cache: resolves Yarn from packageManager, not v1.
25+
# See: https://github.com/actions/setup-node/issues/1027
26+
run: corepack enable
2327
- name: Use Node.js ${{ matrix.node-version }}
2428
uses: actions/setup-node@v4
2529
with:
2630
node-version: ${{ matrix.node-version }}
2731
cache: yarn
28-
- name: Enable Corepack
29-
run: corepack enable
3032
- run: yarn
3133
- run: yarn build

0 commit comments

Comments
 (0)