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

Replace yarn, lerna with npm #1654

Merged
merged 14 commits into from
Sep 14, 2021
Merged

Replace yarn, lerna with npm #1654

merged 14 commits into from
Sep 14, 2021

Conversation

wooorm
Copy link
Member

@wooorm wooorm commented Sep 14, 2021

  • yarn is having problems hoisting dependencies
  • workspaces are builtin to npm now
  • npm has npm ci now, which should speed things up

Let’s see if this works and is fast in actions

* yarn is having problems hoisting dependencies
* workspaces are builtin to npm now
* npm has `npm ci` now, which should speed things up
@vercel
Copy link

vercel bot commented Sep 14, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mdx/mdx/42urJwU8ARq4Ekrchh3xfHn7Zibp
✅ Preview: https://mdx-git-npm-workspaces-mdx.vercel.app

@vercel vercel bot temporarily deployed to Preview September 14, 2021 15:43 Inactive
@wooorm
Copy link
Member Author

wooorm commented Sep 14, 2021

Initial time seems at roughly the same time. Now let’s see if caching does something?

Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

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

👍 for leveraging npm workspaces

Comment on lines 16 to 20
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{hashFiles('package-lock.json')}}
restore-keys: npm-
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I’m assuming the package-lock.json will change a ton (it’s 1.4mb, so it’s likely something changes in the ecosystem every day), which is why I’m investigating a different cache strategy.
See also bahmutov/npm-install#108.

Oh, I’m just seeing that setup node finally supports “nvm lts syntax” (lts/erbium), then we can at least switch to that

@@ -7,15 +7,16 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # for lerna
fetch-depth: 0
Copy link
Member

Choose a reason for hiding this comment

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

this is still needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

it should at least make cloning much faster. There have been some giant files historicaly in the repo

@vercel vercel bot temporarily deployed to Preview September 14, 2021 15:49 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 15:55 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:02 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:13 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:34 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:36 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:42 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:50 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 16:57 Inactive
@vercel vercel bot temporarily deployed to Preview September 14, 2021 17:15 Inactive
Copy link
Member Author

@wooorm wooorm left a comment

Choose a reason for hiding this comment

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

@wooorm wooorm merged commit 952f6dc into main Sep 14, 2021
@wooorm wooorm deleted the npm-workspaces branch September 14, 2021 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants