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

ci: enable corepack in npm preview build #517

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Conversation

Haberkamp
Copy link
Contributor

What?

This fixes the failing preview build job by installing corepack via npm

Why?

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.

How?

The job now installs corepack via npm and then enables it.

Testing?

In order to test that, we need to create a preview build. To start that preview build
one person needs to approve this PR.

Anything Else?

See: actions/setup-node#1222 (comment)

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)
@Haberkamp Haberkamp self-assigned this Feb 20, 2025
Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
meteor-admin-sdk-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 0:03am
meteor-component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 0:03am

Copy link

pkg-pr-new bot commented Feb 20, 2025

Open in Stackblitz

@shopware-ag/meteor-admin-sdk

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-admin-sdk@517

@shopware-ag/meteor-component-library

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-component-library@517

@shopware-ag/stylelint-plugin-meteor

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/stylelint-plugin-meteor@517

@shopware-ag/meteor-tokens

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-tokens@517

@shopware-ag/meteor-icon-kit

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-icon-kit@517

commit: 57af169

@Haberkamp Haberkamp merged commit 6715f15 into main Feb 20, 2025
11 checks passed
@Haberkamp Haberkamp deleted the fix-preview-build-job branch February 20, 2025 12:34
@Haberkamp Haberkamp restored the fix-preview-build-job branch February 21, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants