Skip to content

Commit c91781b

Browse files
authored
ci: fix corepack failure (#467)
1 parent bb75c99 commit c91781b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 0
17-
- run: corepack enable
17+
# fix corepack issue: https://github.com/nodejs/corepack/issues/627
18+
- name: Use Latest Corepack
19+
run: |
20+
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
21+
npm install -g corepack@latest
22+
echo "After : corepack version => $(corepack --version)"
23+
corepack enable
24+
pnpm --version
1825
- name: Setup Node
1926
uses: actions/setup-node@v1
2027
with:

0 commit comments

Comments
 (0)