Skip to content

Commit

Permalink
ci: Override installing packages command
Browse files Browse the repository at this point in the history
By default, this uses npm ci. If we commit a package-lock.json, that
may pin transitive library dependencies. Here, we override that behavior
to avoid cache issues and using package-lock.json.
  • Loading branch information
mcab committed Oct 15, 2022
1 parent a5388b8 commit 477e7b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
- checkout
- node/install:
node-version: << parameters.node-version >>
- node/install-packages
- node/install-packages:
with-cache: false
override-ci-command: npm install
- run: npm run test

publish:
Expand All @@ -60,7 +62,7 @@ jobs:

workflows:
version: 2
build_test_publish_deploy:
build_test_publish:
jobs:
- build-and-test:
matrix:
Expand Down

0 comments on commit 477e7b4

Please sign in to comment.