Skip to content

Commit fd8bffd

Browse files
authored
Push up enable corepack
Following [this solution](actions/setup-node#480 (comment)) to enable corepack and caching.
1 parent b74efad commit fd8bffd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/main.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,23 @@ jobs:
1515
node-version: ['22.11.0']
1616

1717
runs-on: ubuntu-24.04
18-
1918
steps:
2019
- name: Checkout Code
2120
uses: actions/checkout@v4
22-
23-
- name: Setup Node.js
24-
uses: actions/setup-node@v4
25-
with:
26-
cache: 'yarn'
27-
21+
2822
- name: Enable Corepack
2923
run: corepack enable
3024

25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
cache: 'yarn'
29+
3130
- name: Use Yarn 4.4.0
3231
run: corepack prepare [email protected] --activate
3332

3433
- name: Install Dependencies
35-
run: yarn install
34+
run: yarn install --immutable
3635

3736
- name: Run Linter
3837
run: yarn rw lint

0 commit comments

Comments
 (0)