Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

update to npm 7 #3434

Closed
wants to merge 4 commits into from
Closed

update to npm 7 #3434

wants to merge 4 commits into from

Conversation

senadir
Copy link
Member

@senadir senadir commented Nov 20, 2020

This PR updates npm to 7 so we can use workspaces.

I also updated a couple of dependencies to bypass some errors.

I can't run e2e locally due to nodegit not being available, so I'm testing here.

Will add more testing instruction once I get e2e to work.

What works

  • npm install.
  • npm run build.
  • npm start.
  • npm run test.
  • smoke testing.
  • npm run test:e2e.
  • npm run wp-env.

@senadir senadir requested a review from a team as a code owner November 20, 2020 12:13
@senadir senadir requested review from Aljullu and removed request for a team November 20, 2020 12:13
@github-actions
Copy link
Contributor

Size Change: +6.92 kB (0%)

Total Size: 1.13 MB

Filename Size Change
build/active-filters.js 8.94 kB +2 B (0%)
build/all-products.js 36.1 kB -59 B (0%)
build/all-reviews.js 9.77 kB -12 B (0%)
build/atomic-block-components/add-to-cart--atomic-block-components/button.js 3.2 kB -1 B
build/atomic-block-components/add-to-cart--atomic-block-components/image--atomic-block-components/title.js 334 B -1 B
build/atomic-block-components/add-to-cart.js 7.54 kB +7 B (0%)
build/atomic-block-components/category-list.js 477 B -1 B
build/atomic-block-components/image.js 1.15 kB -3 B (0%)
build/atomic-block-components/price.js 2.32 kB -1 B
build/atomic-block-components/rating.js 526 B -1 B
build/atomic-block-components/sale-badge.js 862 B -1 B
build/attribute-filter.js 12.5 kB +4 B (0%)
build/cart.js 39.8 kB -20 B (0%)
build/checkout.js 42.2 kB -40 B (0%)
build/featured-category.js 7.73 kB +1 B
build/featured-product.js 9.98 kB +7 B (0%)
build/handpicked-products.js 7.37 kB +1 B
build/price-filter.js 10.4 kB +1 B
build/product-best-sellers.js 7.45 kB +4 B (0%)
build/product-category.js 8.39 kB +3 B (0%)
build/product-new.js 7.61 kB +3 B (0%)
build/product-on-sale.js 7.99 kB -1 B
build/product-search.js 3.56 kB -4 B (0%)
build/product-tag.js 6.53 kB +1 B
build/reviews-by-category.js 11.8 kB -5 B (0%)
build/reviews-by-product.js 13.4 kB -11 B (0%)
build/vendors.js 425 kB +7.05 kB (1%)
ℹ️ View Unchanged
Filename Size Change
build/active-filters-frontend.js 8.89 kB 0 B
build/all-products-frontend.js 31.2 kB 0 B
build/atomic-block-components/add-to-cart-frontend.js 8.96 kB 0 B
build/atomic-block-components/button-frontend.js 2.04 kB 0 B
build/atomic-block-components/button.js 838 B 0 B
build/atomic-block-components/category-list-frontend.js 468 B 0 B
build/atomic-block-components/image-frontend.js 1.7 kB 0 B
build/atomic-block-components/price-frontend.js 2.29 kB 0 B
build/atomic-block-components/rating-frontend.js 523 B 0 B
build/atomic-block-components/sale-badge-frontend.js 858 B 0 B
build/atomic-block-components/sku-frontend.js 389 B 0 B
build/atomic-block-components/sku.js 394 B 0 B
build/atomic-block-components/stock-indicator-frontend.js 568 B 0 B
build/atomic-block-components/stock-indicator.js 573 B 0 B
build/atomic-block-components/summary-frontend.js 917 B 0 B
build/atomic-block-components/summary.js 925 B 0 B
build/atomic-block-components/tag-list-frontend.js 467 B 0 B
build/atomic-block-components/tag-list.js 473 B 0 B
build/atomic-block-components/title-frontend.js 1.23 kB 0 B
build/atomic-block-components/title.js 1.06 kB 0 B
build/attribute-filter-frontend.js 18.2 kB 0 B
build/blocks.js 3.54 kB 0 B
build/cart-frontend.js 71.3 kB 0 B
build/checkout-frontend.js 86.4 kB 0 B
build/editor-rtl.css 13.8 kB 0 B
build/editor.css 13.9 kB 0 B
build/price-filter-frontend.js 14.9 kB 0 B
build/product-categories.js 3.23 kB 0 B
build/product-top-rated.js 7.58 kB 0 B
build/products-by-attribute.js 8.35 kB 0 B
build/reviews-frontend.js 9.37 kB 0 B
build/single-product-frontend.js 33.8 kB 0 B
build/single-product.js 10.1 kB 0 B
build/style-rtl.css 17.9 kB 0 B
build/style.css 17.9 kB 0 B
build/vendors--atomic-block-components/price-frontend.js 5.65 kB 0 B
build/vendors-style-rtl.css 1.03 kB 0 B
build/vendors-style.css 1.03 kB 0 B
build/wc-blocks-data.js 7.1 kB 0 B
build/wc-blocks-middleware.js 932 B 0 B
build/wc-blocks-registry.js 2.39 kB 0 B
build/wc-payment-method-bacs.js 775 B 0 B
build/wc-payment-method-cheque.js 771 B 0 B
build/wc-payment-method-cod.js 866 B 0 B
build/wc-payment-method-paypal.js 813 B 0 B
build/wc-payment-method-stripe.js 12 kB 0 B
build/wc-settings.js 2.35 kB 0 B
build/wc-shared-context.js 1.53 kB 0 B
build/wc-shared-hocs.js 1.66 kB 0 B

compressed-size-action

@senadir
Copy link
Member Author

senadir commented Nov 20, 2020

It seems we also need to force our actions to use npm 7 cc @nerrad do you have a pointer for this?

@nerrad
Copy link
Contributor

nerrad commented Nov 20, 2020

For node we just have to remove this action in our workflows:

https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/f775a622ec66bd3c401edbb5bb5893ed1940df97/.github/workflows/bundle-size.yml#L9-L12

For npm 7, since it's not lts, we'll probably just have to install it directly by adding the following to any workflows running npm install as a step:

npm install -g npm@7

@senadir
Copy link
Member Author

senadir commented Nov 20, 2020

I updated that section to node 14.
Will add the npm one next until setup-node supports it
actions/setup-node#213

If we remove it, won't break our workflow? why did it add at first?

@nerrad
Copy link
Contributor

nerrad commented Nov 20, 2020

If we remove it, won't break our workflow? why did it add at first?

I added it because github actions by default now install node 14 (because it's now LTS) and we weren't ready to update to node 14 yet :)

@nerrad
Copy link
Contributor

nerrad commented Nov 20, 2020

You can make changes to the workflows in this pull only.

@github-actions
Copy link
Contributor

This PR has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface pull requests that have slipped through review.

If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label - otherwise it will automatically be closed after 10 days.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Jan 20, 2021
@github-actions github-actions bot closed this Jan 31, 2021
@ralucaStan ralucaStan deleted the update/npm-7 branch August 4, 2021 14:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: stale Stale issues and PRs have had no updates for 60 days.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants