Skip to content

Commit 5138619

Browse files
committed
Updated yarn command to use --frozen-lockfile
ref yarnpkg/yarn#4147 - Running yarn install without --frozen-lockfile can result in the yarn.lock file being mutated during the build step - This means discrepancies between package.json and yarn.lock are handled silently in CI and not caught until the deployment states later - By adding --frozen-lockfile to our test build, we'll ensure these types of issues are caught earlier
1 parent 7a6e4d1 commit 5138619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- run: yarn global add lerna@^4
3535
if: steps.check_files.outputs.files_exists == 'true'
3636

37-
- run: yarn --prefer-offline
37+
- run: yarn --prefer-offline --frozen-lockfile
3838
- run: yarn test
3939

4040
- uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)