Skip to content

Commit b18a889

Browse files
committed
ci: corepack fix in publish
1 parent 2963149 commit b18a889

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ jobs:
2525
persist-credentials: false
2626
token: ${{ secrets.GH_TOKEN }}
2727

28-
- uses: actions/setup-node@v2
28+
# Workaround for corepack enable in node
29+
# Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029)
30+
- uses: actions/setup-node@v4
2931
with:
3032
node-version: 20
31-
cache: 'yarn'
33+
- run: corepack enable
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: yarn
38+
# End workaround
3239

3340
- name: Config and Build
3441
run: |

0 commit comments

Comments
 (0)