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

CI: fail build if unstaged changes #106

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

spowelljr
Copy link
Collaborator

Check for unstaged changes after running npm run all, fail the build if it does.

This prevents a user from trying to merge a dist/index.js built with malicious code that's not included in their PR.

This will also prevent the more common issue that users may forget to build before pushing their changes up.

Removed minifying dist/index.js as minifying has a guaranteed chance of causing merge conflicts.

Also replaced npm install with npm ci as that should be used instead in CI.

@medyagh medyagh merged commit 2b1efcc into medyagh:master Mar 21, 2023
@spowelljr spowelljr deleted the preventMergingIfChanges branch March 21, 2023 20:10
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