Skip to content

Commit 1f975bb

Browse files
committed
fix: enable corepack in github actions
1 parent 9750930 commit 1f975bb

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ jobs:
2020
uses: styfle/cancel-workflow-action@0.11.0
2121
with:
2222
access_token: ${{ secrets.GITHUB_TOKEN }}
23+
2324
- uses: actions/checkout@v3
25+
26+
- name: Enable corepack
27+
run: |
28+
corepack enable
29+
2430
- name: Use Node.js ${{ matrix.node-version }}
2531
uses: actions/setup-node@v3
2632
with:
2733
node-version: ${{ matrix.node-version }}
34+
2835
- name: build
2936
run: |
3037
yarn install

.github/workflows/checks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@ jobs:
3939
uses: styfle/cancel-workflow-action@0.11.0
4040
with:
4141
access_token: ${{ secrets.GITHUB_TOKEN }}
42+
4243
- uses: actions/checkout@v3
44+
45+
- name: Enable corepack
46+
run: |
47+
corepack enable
48+
4349
- name: Use Node.js ${{ matrix.node-version }}
4450
uses: actions/setup-node@v3
4551
with:
4652
node-version: ${{ matrix.node-version }}
53+
4754
- name: prettier
4855
run: |
4956
yarn install
@@ -57,7 +64,9 @@ jobs:
5764
uses: styfle/cancel-workflow-action@0.11.0
5865
with:
5966
access_token: ${{ secrets.GITHUB_TOKEN }}
67+
6068
- uses: actions/checkout@v3
69+
6170
- name: Link Checker
6271
uses: lycheeverse/lychee-action@v1.9.0
6372
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ out
1818
.dccache
1919
*.code-workspace
2020
.direnv
21+
._*

0 commit comments

Comments
 (0)