mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
36869a4350
The version field is now stored in the main `package.json` file rather than in the base manifest. It is built into the final manifest during the build script. This makes it easier to communicate what the current version should be to our `auto-changelog` script. It's also generally a more conventional place to keep track of the version, even considering that we're not publishing to npm.
28 lines
546 B
Bash
Executable File
28 lines
546 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 --no-git-tag-version --new-version "${version}"
|
|
|
|
if [[ -z $(git status --porcelain) ]]
|
|
then
|
|
printf '%s\n' 'App manifest version already set'
|
|
fi
|