mirror of
https://github.com/AtHeartEngineering/lodestar.git
synced 2026-01-09 01:28:11 -05:00
Assert tag == local package.json version (#3840)
* Fix RELEASE instructions * Assert tag == local package.json version
This commit is contained in:
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -30,6 +30,11 @@ jobs:
|
||||
env:
|
||||
CURRENT_TAG: ${{ steps.get_tag.outputs.tag }}
|
||||
IGNORE_PATTERN: beta
|
||||
|
||||
- name: Assert tag == package.json version
|
||||
run: .github/workflows/scripts/assert-same-package-version.sh
|
||||
env:
|
||||
TAG: ${{ steps.get_tag.outputs.tag }}
|
||||
outputs:
|
||||
is_beta: ${{ contains(github.ref, 'beta') }}
|
||||
tag: ${{ steps.get_tag.outputs.tag }}
|
||||
|
||||
19
.github/workflows/scripts/assert-same-package-version.sh
vendored
Executable file
19
.github/workflows/scripts/assert-same-package-version.sh
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
# Our current release strategy does not gurantee that the tagged commit
|
||||
# has the same version in the package.json.
|
||||
#
|
||||
# If that's not the case, no version will be published to NPM and a faulty image will be published to dockerhub
|
||||
|
||||
LOCAL_VERSION=$(jq -r .version lerna.json)
|
||||
|
||||
if [ -z "$TAG" ]; then
|
||||
echo "ENV TAG is empty"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $TAG == *"$LOCAL_VERSION"* ]]; then
|
||||
echo "TAG $TAG includes LOCAL_VERSION $LOCAL_VERSION"
|
||||
exit 0
|
||||
else
|
||||
echo "TAG $TAG does not include LOCAL_VERSION $LOCAL_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
@@ -17,7 +17,7 @@ export TAG=v0.34.0-beta.0 && git tag -a $TAG 9fceb02 -m "$TAG" && git push origi
|
||||
4. The team creates a PR to bump `master` to the next version (in the example: `v0.35.0`) and continues releasing nightly builds.
|
||||
|
||||
```
|
||||
lerna version minor --no-git-tag-version
|
||||
lerna version minor --no-git-tag-version --force-publish
|
||||
```
|
||||
|
||||
After 3-5 days of testing:
|
||||
@@ -25,7 +25,7 @@ After 3-5 days of testing:
|
||||
5. Tag final stable commit as `v0.34.0`, release and publish the stable release. This commit will be in `v0.34.x` branch and may note be on `master` if beta candidate required bug fixes.
|
||||
|
||||
```
|
||||
export TAG=v0.34.0 git && tag -a $TAG 9fceb02 -m "$TAG" && git push origin $TAG
|
||||
export TAG=v0.34.0 && git tag -a $TAG 9fceb02 -m "$TAG" && git push origin $TAG
|
||||
```
|
||||
|
||||
## Pre-Releases
|
||||
|
||||
Reference in New Issue
Block a user