Skip to content

Commit 783d301

Browse files
authored
Fix: failed to enable Corepack during deployment (#1545)
1 parent a8e873a commit 783d301

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
# docs.flutter.cn | https://github.com/cfug/flutter.cn/pull/1518
133133
fetch-depth: 0
134134
- name: Enable Corepack
135-
run: corepack enable
135+
run: npm i -g corepack@latest && corepack enable
136136
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
137137
with:
138138
node-version: ${{ env.NODE_VERSION }}

.github/workflows/stage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# docs.flutter.cn | https://github.com/cfug/flutter.cn/pull/1518
2727
fetch-depth: 0
2828
- name: Enable Corepack
29-
run: corepack enable
29+
run: npm i -g corepack@latest && corepack enable
3030
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
3131
with:
3232
node-version: ${{ env.NODE_VERSION }}

0 commit comments

Comments
 (0)