Skip to content

ci: run npm ci to install and ignore scripts#104

Merged
jdbruijn merged 2 commits intomasterfrom
ci/ignore-scripts
Feb 25, 2021
Merged

ci: run npm ci to install and ignore scripts#104
jdbruijn merged 2 commits intomasterfrom
ci/ignore-scripts

Conversation

@jdbruijn
Copy link
Copy Markdown
Collaborator

npm ci is meant to be used in CI environments and the scripts are ignored to prevent e.g. Husky
from being installed in the CI environment. See https://docs.npmjs.com/cli/v7/commands/npm-ci.

`npm ci` is meant to be used in CI environments and the scripts are ignored to prevent e.g. Husky
from being installed in the CI environment. See https://docs.npmjs.com/cli/v7/commands/npm-ci.
@jdbruijn jdbruijn requested a review from wagoid February 25, 2021 18:03
@jdbruijn
Copy link
Copy Markdown
Collaborator Author

Also note that I think this will fix the CI release issues on master, like: https://github.com/wagoid/commitlint-github-action/runs/1981465369?check_suite_focus=true

I think those would have started failing after the Husky v5 update, but wasn't then due to the the configuration being invalid.

Copy link
Copy Markdown
Owner

@wagoid wagoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! @jdbruijn so we should also add --ignore-scripts to the Dockerfile, right?

@jdbruijn
Copy link
Copy Markdown
Collaborator Author

LGTM! @jdbruijn so we should also add --ignore-scripts to the Dockerfile, right?

Yeah! I'll update in a sec

@jdbruijn jdbruijn merged commit e03ee8e into master Feb 25, 2021
@jdbruijn jdbruijn deleted the ci/ignore-scripts branch February 25, 2021 19:02
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