mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
4ee93f2594
* Removing invalid flags for yarn version command * Adding yarn version plugin * remove .yarn from coverage --------- Co-authored-by: Brad Decker <bhdecker84@gmail.com>
28 lines
511 B
Bash
Executable File
28 lines
511 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
|
|
if [[ "${CI:-}" != 'true' ]]
|
|
then
|
|
printf '%s\n' 'CI environment variable must be set to true'
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "${CIRCLECI:-}" != 'true' ]]
|
|
then
|
|
printf '%s\n' 'CIRCLECI environment variable must be set to true'
|
|
exit 1
|
|
fi
|
|
|
|
printf '%s\n' 'Updating the manifest version if needed'
|
|
|
|
version="${CIRCLE_BRANCH/Version-v/}"
|
|
yarn version "${version}"
|
|
|
|
if [[ -z $(git status --porcelain) ]]
|
|
then
|
|
printf '%s\n' 'App manifest version already set'
|
|
fi
|