Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade corepack in ci #860

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
run: |
npm i -g corepack@latest
corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
run: |
npm i -g corepack@latest
corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
run: |
npm i -g corepack@latest --force
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the force option to avoid the file-exists error on windows.

npm error File exists: C:\npm\prefix\yarn

corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -62,7 +64,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
run: |
npm i -g corepack@latest
corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
Expand Down
Loading