Skip to content

Conversation

@topheman
Copy link
Owner

This PR updates the GitHub Actions workflow to use npm ci instead of npm install for installing JavaScript dependencies. This change improves build reliability and performance in CI/CD environments.

Changes Made

  • File: .github/workflows/web-host.yml
  • Change: Replace npm install with npm ci in the "Install JavaScript dependencies" step

Why npm ci?

  • Faster installation: npm ci is optimized for continuous integration environments
  • Deterministic builds: Ensures exact dependency versions are installed based on package-lock.json
  • Cleaner environment: Automatically removes node_modules before installation
  • Better error handling: Fails fast if package-lock.json is out of sync with package.json

Documentation References

Impact

  • ✅ Improved build reliability
  • ✅ Faster CI builds
  • ✅ Ensures consistent dependency versions across environments
  • ✅ No breaking changes to the application

This is a safe change that follows npm best practices for CI/CD workflows.

@topheman topheman self-assigned this Jul 11, 2025
@topheman topheman merged commit 7fa5261 into master Jul 11, 2025
6 checks passed
@topheman topheman deleted the feat/npm-ci branch July 11, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants