Skip to content

Commit 7f330e2

Browse files
fix: enable corepack before setup-node to avoid yarn version conflict
1 parent 0add3ca commit 7f330e2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v5
15+
- name: Enable Corepack
16+
run: corepack enable
1517
- uses: actions/setup-node@v5
1618
with:
1719
node-version: '22'
18-
- name: Enable Corepack
19-
run: corepack enable
2020
- name: Install dependencies
2121
run: yarn install
2222
- run: yarn typecheck

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
- uses: actions/checkout@v5
1515
with:
1616
persist-credentials: false
17+
- name: Enable Corepack
18+
run: corepack enable
1719
- uses: actions/setup-node@v5
1820
with:
1921
node-version: '22'
2022
registry-url: 'https://registry.npmjs.org'
21-
- name: Enable Corepack
22-
run: corepack enable
2323
- name: Install dependencies
2424
run: yarn install
2525
- run: yarn typecheck

0 commit comments

Comments
 (0)