2019-09-25 14:01:10 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-04-20 15:18:16 +02:00
|
|
|
|
|
|
|
# Print commands and their arguments as they are executed.
|
2019-09-25 14:01:10 +02:00
|
|
|
set -x
|
2020-04-20 15:18:16 +02:00
|
|
|
# Exit immediately if a command exits with a non-zero status.
|
|
|
|
set -e
|
2019-09-25 14:01:10 +02:00
|
|
|
|
2021-03-26 04:55:03 +01:00
|
|
|
yarn install --frozen-lockfile --har
|
2019-09-25 14:01:10 +02:00
|
|
|
|
2020-12-14 16:16:42 +01:00
|
|
|
# Move HAR file into directory with consistent name so that we can cache it
|
|
|
|
mkdir -p build-artifacts/yarn-install-har
|
|
|
|
har_files=(./*.har)
|
|
|
|
if [[ -f "${har_files[0]}" ]]
|
|
|
|
then
|
|
|
|
mv ./*.har build-artifacts/yarn-install-har/
|
2021-02-22 15:43:29 +01:00
|
|
|
fi
|