Skip to content

Commit 2f026ff

Browse files
authored
Merge branch 'main' into feat/trezor-erc721-e2e
2 parents e4ef478 + ab37a3d commit 2f026ff

File tree

103 files changed

+1292
-1158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1292
-1158
lines changed

.github/scripts/get-next-semver-version.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ then
99
exit 0
1010
fi
1111

12-
# Get the version from package.json
13-
VERSION_PACKAGE=$(node -p "require(process.env.GITHUB_WORKSPACE + '/package.json').version")
12+
# Pattern for Version-vX.Y.Z branches
13+
VERSION_BRANCHES_VERSION_V=$(git branch -r | grep -o 'Version-v[0-9]*\.[0-9]*\.[0-9]*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sort --version-sort | tail -n 1)
14+
# Default pattern for release/x.y.z branches
15+
VERSION_BRANCHES_RELEASE=$(git branch -r | grep -o 'release/[0-9]*\.[0-9]*\.[0-9]*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sort --version-sort | tail -n 1)
1416

15-
echo "NEXT_SEMVER_VERSION=${VERSION_PACKAGE}" >> "$GITHUB_ENV"
17+
# Compare versions and keep the highest one
18+
HIGHEST_VERSION=$(printf "%s\n%s" "$VERSION_BRANCHES_VERSION_V" "$VERSION_BRANCHES_RELEASE" | sort --version-sort | tail -n 1)
19+
echo "HIGHEST_VERSION=${HIGHEST_VERSION}, VERSION_BRANCHES_VERSION_V=${VERSION_BRANCHES_VERSION_V}, VERSION_BRANCHES_RELEASE=${VERSION_BRANCHES_RELEASE}"
20+
21+
# Increment the minor version of the highest version found and reset the patch version to 0
22+
NEXT_VERSION=$(echo "$HIGHEST_VERSION" | awk -F. -v OFS=. '{$2++; $3=0; print}')
23+
24+
echo "NEXT_SEMVER_VERSION=${NEXT_VERSION}" >> "$GITHUB_ENV"

.github/workflows/add-release-label.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
id: get-next-semver-version
2525
env:
2626
FORCE_NEXT_SEMVER_VERSION: ${{ vars.FORCE_NEXT_SEMVER_VERSION }}
27-
run: ./development/get-next-semver-version.sh "$FORCE_NEXT_SEMVER_VERSION"
27+
run: ./get-next-semver-version.sh "$FORCE_NEXT_SEMVER_VERSION"
28+
working-directory: '.github/scripts'
2829

2930
- name: Add release label to PR and linked issues
3031
id: add-release-label-to-pr-and-linked-issues

.github/workflows/create-release-pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ on:
1313
description: 'A semantic version, eg: x.x.x'
1414
required: true
1515
previous-version-ref:
16-
description: 'Previous release version reference (tag or commit hash). eg: v7.7.0'
16+
description: 'Previous release version branch name, tag or commit hash (e.g., Version-vx.y.z, v7.7.0, or 76fbc500034db9779e9ff7ce637ac5be1da0493d)'
1717
required: true
1818

1919
jobs:
2020
create-release-pr:
2121
name: Create Release Pull Request using Github Tools
22-
uses: MetaMask/github-tools/.github/workflows/create-release-pr.yml@75cfa5085bee4804dadaa2516a47c4ff37278b35
22+
uses: MetaMask/github-tools/.github/workflows/create-release-pr.yml@d15d78647c5493e12cc55717504fbf10aabd05a9
2323
with:
2424
platform: extension
2525
checkout-base-branch: ${{ inputs.checkout-base-branch }}
2626
release-pr-base-branch: ${{ inputs.release-pr-base-branch }}
2727
semver-version: ${{ inputs.semver-version }}
28-
previous-version-tag: ${{ inputs.previous-version-ref }}
29-
github-tools-version: 75cfa5085bee4804dadaa2516a47c4ff37278b35
28+
previous-version-ref: ${{ inputs.previous-version-ref }}
29+
github-tools-version: d15d78647c5493e12cc55717504fbf10aabd05a9
3030
secrets:
3131
# This token needs write permissions to metamask-extension & read permissions to metamask-planning
3232
github-token: ${{ secrets.PR_TOKEN }}

app/_locales/de/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/el/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/en/messages.json

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/en_GB/messages.json

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/es/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/fr/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/hi/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)