Handle the first release of a gem with RELEASE_TYPE 'first' #32
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.
Handle the use case where this is the first release/
For this use case, let's assume the following:
main
(this is the HEAD branch returned bygit remote show origin
)0.1.0
(as returned bybump current
)If a different first version number is desired, update the version number in the
source code making sure that
bump current
returns the desired version number.Then commit the change to the default branch on the remote before running this
script.
If you want to add custom frontmatter to your changelog file, see
How the changelog is updated. Any change
should be committed and merged/pushed to the default branch on the remote before
running this script.
The following prerequisites are checked by this script:
main
) must be checked outHEAD commit of the default branch of the remote repository
v0.1.0
) must NOT already existrelease-v0.1.0
) must NOT already existgh auth
You should run:
The
create-github-release
script will do the following:v0.1.0
) usingbump current
CHANGELOG.md
release-v0.1.0
v0.1.0
) pointingto that commit