File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 steps :
1818 - name : Checkout
1919 uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
2022
2123 - name : Setup Dart
2224 uses : dart-lang/setup-dart@v1
@@ -32,12 +34,26 @@ jobs:
3234 - name : Bootstrap
3335 run : melos bootstrap
3436
35- - name : Set release train version
37+ - name : Derive version from tag
3638 run : |
3739 set -euo pipefail
3840 VERSION="${GITHUB_REF_NAME#v}"
3941 echo "Releasing version: $VERSION"
42+ echo "VERSION=$VERSION" >> "$GITHUB_ENV"
43+
44+ - name : Checkout release branch (avoid detached HEAD)
45+ run : |
46+ set -euo pipefail
47+
48+ BRANCH="release/$VERSION"
49+ echo "Checking out $BRANCH"
4050
51+ git fetch origin "$BRANCH:refs/remotes/origin/$BRANCH" --tags --force
52+ git checkout -B "$BRANCH" "origin/$BRANCH"
53+
54+ - name : Set release train version
55+ run : |
56+ set -euo pipefail
4157 # Force every public workspace package to the exact same version.
4258 # We intentionally avoid committing/tagging here; the tag already exists.
4359 melos version --yes \
You can’t perform that action at this time.
0 commit comments