1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/.circleci/scripts/trigger-beta-build.sh
Dan J Miller 660ae4c156
Fix mv3 beta build (#18690)
* Build beta with mv3 enabled

* Ensure firefox manifest is an mv2 version

* Revert "Ensure firefox manifest is an mv2 version"

This reverts commit fed74792b0fec33c3a85f2229eb560559d37afe5.

* Only create beta builds for the chrome platform

* Stop linting firefox for beta
2023-04-26 12:26:33 -02:30

26 lines
745 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -u
set -o pipefail
# => Version-v10.24.1
version="${CIRCLE_BRANCH/Version-v/}"
current_commit_msg=$(git show -s --format='%s' HEAD)
if [[ $current_commit_msg =~ Version[[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+[-]beta.[[:digit:]]) ]]
then
# filter the commit message like Version v10.24.1-beta.1
printf '%s\n' "Create a build for $version with beta version $current_commit_msg"
export ENABLE_MV3=true
yarn build --build-type beta --platform='chrome' dist
yarn build --build-type beta --platform='chrome' prod
else
printf '%s\n' 'Commit message does not match commit message for beta pattern; skipping beta automation build'
mkdir dist
mkdir builds
exit 0
fi
exit 0