Commit Graph

22 Commits

Author SHA1 Message Date
Paul Ebose 8ca79d7247
improve var names and comments 2024-07-01 17:21:55 +01:00
Paul Ebose d393e547d0
add link to action versioning recommendation 2024-07-01 05:01:18 +01:00
Paul Ebose 9da7ccc283
update script steps 2024-07-01 04:33:03 +01:00
Paul Ebose 5613359501
minor comment change 2024-07-01 03:48:57 +01:00
Paul Ebose 1c49bf9c04
consider the new release being a major release
This implementation also creates a `releases/v#` branch off of the previous major version tag
2024-07-01 03:48:23 +01:00
Paul Ebose a6f9ca5bd3
update the major version tag when creating a new release 2024-07-01 03:26:29 +01:00
Paul Ebose 43c2d7b865
spell out the git command flags used 2024-07-01 03:25:01 +01:00
Paul Ebose c3a8d435e7
improve debug messages 2024-07-01 03:22:26 +01:00
Paul Ebose 371c87b4e5
remind user to update `version` field in package.json 2024-07-01 03:06:46 +01:00
Paul Ebose a28b58b067
make the colored text bold 2024-07-01 02:42:58 +01:00
Paul Ebose 4b33f5f5b1
use `--follow-tags` flag to push to remote
- Using `--follow-tags` instead of `--tags` can be the saner option
- `follow-tags` also pushes commits
2024-07-01 02:41:04 +01:00
Paul Ebose 35b1cc8b7b
terminate script when a command fails
- Previously, when the git push command failed, the script would still echo a success message.
- This commit also makes sure the git describe command does not terminate the script.
2024-07-01 02:39:31 +01:00
Paul Ebose be270a6def
improve the git describe command
- When using the [action versioning recommendations](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md#recommendations), a commit can have duplicate tags (v2, v2.1.2).
- The previous implementation did not take that into consideration.
- With this new implementation, v2.1.2 is returned even when v2 is the newer commit tag (which is usually the case).
- Also, when running this script from another branch (let's say 'releases/v1'), the previous implementation would return newer tags in other branches.
- NOTE: This new implementation only searches for annotated tags.
2024-07-01 02:37:14 +01:00
Paul Ebose 67934fecc6
move `tag_regex` to variables section 2024-07-01 02:17:03 +01:00
Nick Alteen b15f546a05 Fix shfmt errors 2024-02-22 09:47:59 -05:00
Nick Alteen 535a28ecb5 Clarify release script usage 2024-02-01 10:23:43 -05:00
GrantBirki 081e185c76
fix release script 2023-10-31 18:15:24 -06:00
GrantBirki 5479e29632
appease the linter 2023-10-31 18:02:57 -06:00
GrantBirki 78a046bc59
update release script for first time use 2023-10-31 17:55:51 -06:00
GrantBirki a71e85eba6
add inline notes 2023-10-31 17:52:55 -06:00
GrantBirki d303d44bf6
executable 2023-10-31 17:51:10 -06:00
GrantBirki 5b3b254a81
add release helper script 2023-10-31 17:50:45 -06:00