Skip to content

Commit 57af169

Browse files
committed
ci: enable corepack in npm preview build
The actions/setup-node@v4 action fails because it cannot correctly use corepack. To fix that I implemented workaround. It installs corepack via npm and then enables it. We cannot remove it, because pkg.pr.new needs corepack in order to work. See: actions/setup-node#1222 (comment)
1 parent 4100ca6 commit 57af169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/npm-preview-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v2
14-
- run: corepack enable
14+
- run: npm i -g --force corepack && corepack enable
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 20

0 commit comments

Comments
 (0)