chore: create release automation script #5707
Open
+140
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to create automation script for release, at least from what I tested, it seems working as intended, although I haven't really tried publishing a version actually, just in case it breaks something (like maybe entur version registration stuff) 😨 .
Please let me know if there are stuff to improve.
UPDATE
Script now can be run using
yarn releaseIf triggered on Master: do a new version release with RC1
If triggered on Release: do a new RC release, if no release yet, do RC1
Otherwise here's what the script will do:
OLD VERSION
The script can be run by calling: `./release.sh {VERSION-RC}`, for example `./release.sh 1.79-rc1`Then it will:
The only manual thing we need to do is to approve and merge the version bump PR since the master branch is protected and PRs require approval before merging.