Skip to content

Commit

Permalink
feat: Added the --frozen-lockfile flag to the yarn_install command
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The `yarn_install` command will now fail if there need to be changes made to your `yarn.lock` file. See [the Yarn documentation](https://yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile) for details on this flag.

Fixes react-native-community#28
  • Loading branch information
matt-oakes committed Jan 4, 2020
1 parent 380d164 commit e4676c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/yarn_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
- yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run:
name: Yarn Install
command: yarn install --non-interactive --cache-folder ~/.cache/yarn
command: yarn install --frozen-lockfile --non-interactive --cache-folder ~/.cache/yarn
- save_cache:
paths:
- ~/.cache/yarn
Expand Down

0 comments on commit e4676c4

Please sign in to comment.