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: fix Node 8 in CI #2364

Merged
merged 1 commit into from Mar 8, 2021
Merged

chore: fix Node 8 in CI #2364

merged 1 commit into from Mar 8, 2021

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Mar 5, 2021

This monorepo uses workspaces which are only available in npm@7.

Our CI runs tests on Node 8 and 15. However, Node 8 does not come with npm@7. This means that packages are not linked between each other. This results in @netlify/build using old version of them, when the PR adds changes to one of them.

The current solution runs npm install in each monorepo package when in Node 8. However, this does not link packages. This PR uses lerna instead, on Node 8 only.

Note: this PR is the reason why Node 8 tests were failing on #2288

@ehmicky ehmicky added the type: bug code to address defects in shipped code label Mar 5, 2021
@ehmicky ehmicky requested a review from JGAntunes March 5, 2021 19:18
@ehmicky ehmicky self-assigned this Mar 5, 2021
@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Mar 5, 2021
Copy link
Member

@JGAntunes JGAntunes left a comment

Choose a reason for hiding this comment

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

Node 8 strikes again 👀

@ehmicky ehmicky enabled auto-merge (squash) March 8, 2021 12:52
@ehmicky ehmicky disabled auto-merge March 8, 2021 12:58
@ehmicky ehmicky changed the title chore: fix running Node 8 in CI chore: fix Node 8 in CI Mar 8, 2021
@ehmicky ehmicky merged commit 7d0ab66 into master Mar 8, 2021
@ehmicky ehmicky deleted the fix/npm-7 branch March 8, 2021 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants