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
Enable running npm ci instead of install #15579
Comments
Targets Vaadin 24.1 and Vaadin 14.10. |
Adds possibility to install the npm packages using npm ci instead of npm install (or for pnpm: pnpm install --frozen-lockfile) to install the exact versions in the lock file. Can be enabled with ci.build parameter when executing a production mode frontend build. Fixes #15579
This ticket/PR has been released with Vaadin 14.10.0.alpha2 and is also targeting the upcoming stable 14.10.0 version. |
This ticket/PR has been released with Vaadin 24.1.0.alpha1 and is also targeting the upcoming stable 24.1.0 version. |
How can we configure this feature to use it in build? |
The feature is only out in alpha versions so far. You can enable it by setting |
Adds possibility to install the npm packages using npm ci instead of npm install (or for pnpm: pnpm install --frozen-lockfile) to install the exact versions in the lock file. Can be enabled with ci.build parameter when executing a production mode frontend build. Fixes #15579 (cherry picked from commit 5607864)
* feat: Enable running npm ci mode (#15579) (#15986) Adds possibility to install the npm packages using npm ci instead of npm install (or for pnpm: pnpm install --frozen-lockfile) to install the exact versions in the lock file. Can be enabled with ci.build parameter when executing a production mode frontend build. Fixes #15579 (cherry picked from commit 5607864) * Fix npm ci test --------- Co-authored-by: Teppo Kurki <teppo.kurki@vaadin.com>
This ticket/PR has been released with Vaadin 23.4.0.alpha1 and is also targeting the upcoming stable 23.4.0 version. |
Describe your motivation
CI builds would benefit of the possibility to install the npm packages using
npm ci
instead ofnpm install
(or for pnpm usepnpm install --frozen-lockfile
) to install the exact versions in the lock file.Describe the solution you'd like
Add a system variable (
vaadin.ci.build
?) that would order TaskRunNpmInstall to useci
instead ofinstall
.Additional context
the vaadin maven plugin executes "npm install" instead of "npm ci" in build flow, and that can potentially overwrite package/package-lock.json.
The text was updated successfully, but these errors were encountered: