Skip to content

Commit

Permalink
Fail the build if the lockfile is outdated (PR #2280)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Oct 21, 2019
1 parent 2f0cb6c commit eaf9244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ commands:
- v2-dependencies-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
- v2-dependencies-{{ checksum "package.json" }}
- v2-dependencies-
- run: yarn install
# With --frozen-lockfile, the installation will fail if the lockfile is
# outdated compared to package.json.
- run: yarn install --frozen-lockfile
- save_cache:
paths:
- node_modules
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install:
# 2. Select the right node
- ps: Install-Product node $env:nodejs_version $env:platform
# 3. Setup the project
- yarn install
- yarn install --frozen-lockfile

# Post-install test scripts.
test_script:
Expand Down

0 comments on commit eaf9244

Please sign in to comment.