Skip to content

P:builder: Don't run npm update or npm prune, run npm ci #78

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

Merged
merged 2 commits into from
Aug 13, 2025

Conversation

mgol
Copy link
Member

@mgol mgol commented Aug 11, 2025

Changes:

  1. Use npm ci in favor of npm install whenever a lockfile is present.
  2. Don't run npm update or npm prune. The latter is unnecessary, and the former is breaking the build when new incompatible dependencies come out. Also, just blindly updating everything to the latest version makes us more vulnerable to supply chain attacks in our dependencies.

Fixes gh-38

Changes:
1. Use `npm ci` in favor of `npm install`
2. Don't run `npm update` or `npm prune`. The latter is unnecessary, and
   the former is breaking the build when new incompatible dependencies come out.
   Also, just blindly updating everything to the latest version makes us more
   vulnerable to supply chain attacks in our dependencies.
@mgol mgol requested review from Krinkle and timmywil August 11, 2025 22:54
@mgol mgol self-assigned this Aug 11, 2025
@Krinkle
Copy link
Member

Krinkle commented Aug 12, 2025

This will resolve #38.

@mgol mgol requested a review from Krinkle August 13, 2025 09:10
@mgol mgol merged commit ff09a6d into jquery:staging Aug 13, 2025
2 checks passed
@mgol mgol deleted the no-npm-update branch August 13, 2025 15:36
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.

Remove npm update step from builder notifier scripts
3 participants