Skip to content

Commit c1cd87c

Browse files
committed
ci(project): Enable corepack before setup node
1 parent 9997b63 commit c1cd87c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v3
27+
- name: Enable Corepack
28+
run: corepack enable
2729
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
2931
with:
30-
node-version: ${{ matrix.node-version }}
32+
node-version: 20
33+
registry-url: 'https://registry.npmjs.org/'
3134
cache: 'yarn'
35+
cache-dependency-path: 'yarn.lock'
3236
- name: Install dependencies
3337
run: yarn install --frozen-lockfile
3438
- name: Build packages

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
with:
2525
fetch-tags: 'true'
2626
fetch-depth: '0'
27+
- name: Enable Corepack
28+
run: corepack enable
2729
- name: Install Node.js
2830
uses: actions/setup-node@v4
2931
with:

0 commit comments

Comments
 (0)