-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hardware-wallets-referral-and-tutorial-links' of https:…
…//github.com/MetaMask/metamask-extension into hardware-wallets-referral-and-tutorial-links
- Loading branch information
Showing
679 changed files
with
34,043 additions
and
10,096 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/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 | ||
|
||
if [[ -z "${GITHUB_TOKEN:-}" ]] | ||
then | ||
printf '%s\n' 'GITHUB_TOKEN environment variable must be set' | ||
exit 1 | ||
elif [[ -z "${GITHUB_TOKEN_USER:-}" ]] | ||
then | ||
printf '%s\n' 'GITHUB_TOKEN_USER environment variable must be set' | ||
exit 1 | ||
fi | ||
|
||
printf '%s\n' 'Commit the manifest version and changelog if the manifest has changed' | ||
|
||
if [[ "${CIRCLE_BRANCH}" != "develop" ]] | ||
then | ||
printf 'This is not develop branch' | ||
exit 0 | ||
fi | ||
|
||
mkdir temp | ||
|
||
git config --global user.email "[email protected]" | ||
|
||
git config --global user.name "MetaMask Bot" | ||
|
||
git clone [email protected]:MetaMask/extension_bundlesize_stats.git temp | ||
|
||
if [[ -f "temp/stats/bundle_size_stats-${CIRCLE_SHA1}.json" ]] | ||
then | ||
printf 'Bundle size of the commit is already recorded' | ||
cd .. | ||
rm -rf temp | ||
exit 0 | ||
fi | ||
|
||
cp -R test-artifacts/chrome/mv3/bundle_size.json temp/stats | ||
|
||
echo " bundle_size_stats-${CIRCLE_SHA1}.json" >> temp/stats/fileList.txt | ||
|
||
mv temp/stats/bundle_size.json "temp/stats/bundle_size_stats-${CIRCLE_SHA1}.json" | ||
|
||
cd temp | ||
|
||
git add . | ||
|
||
git commit --message "Bundle size at commit: ${CIRCLE_SHA1}" | ||
|
||
repo_slug="$CIRCLE_PROJECT_USERNAME/extension_bundlesize_stats" | ||
git push "https://$GITHUB_TOKEN_USER:$GITHUB_TOKEN@github.com/$repo_slug" main | ||
|
||
cd .. | ||
|
||
rm -rf temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# improved-yarn-audit advisory exclusions | ||
GHSA-93q8-gq69-wqmw | ||
GHSA-257v-vj4p-3w2h | ||
GHSA-fwr7-v2mv-hh25 | ||
GHSA-wm7h-9275-46v2 | ||
GHSA-pfrx-2q88-qq97 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v14 | ||
v16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.