Skip to content

Commit 44cc4c0

Browse files
authored
chore: add --frozen-lockfile to CI/CD 'yarn install' invocations (#896)
1 parent e8c7b12 commit 44cc4c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ script:
1717
# Building the Docker image
1818
- docker build --pull --build-arg BUILD_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg COMMIT_ID="${TRAVIS_COMMIT}" -t "jsii/superchain:nightly" ./superchain
1919
# Building jsii itself within the Docker image
20-
- docker run --rm -it --network=host -v ${PWD}:${PWD} -w ${PWD} jsii/superchain:nightly bash -c "yarn install && yarn build && yarn test"
20+
- docker run --rm -it --network=host -v ${PWD}:${PWD} -w ${PWD} jsii/superchain:nightly bash -c "yarn install --frozen-lockfile && yarn build && yarn test"
2121
# Make sure the build did not change the source tree
2222
- git update-index --refresh
2323
- git diff-index --exit-code --stat HEAD

buildspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ phases:
55
commands:
66
# Temporarily - install yarn if it's not there already
77
- yarn --version || npm install --global yarn
8-
- yarn install
8+
- yarn install --frozen-lockfile
99
pre_build:
1010
commands:
1111
- yarn fetch-dotnet-snk

0 commit comments

Comments
 (0)