You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,8 +83,24 @@ See [step-debug-logs](https://github.com/actions/toolkit/blob/master/docs/action
83
83
84
84
## Release workflow
85
85
86
-
Instructions for releasing a new version of the action:
86
+
To release a new version, run:
87
87
88
-
1. If the release will increment the major version, update the action refs in the examples in README.md (e.g., `uses: go-task/setup-task@v1` -> `uses: go-task/setup-task@v2`).
89
-
1. Create a [GitHub release](https://docs.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release), following the `vX.Y.Z` tag name convention. Make sure to follow [the SemVer specification](https://semver.org/).
90
-
1. Rebase the release branch for that major version (e.g., `v1` branch for the `v1.x.x` tags) on the tag. If no branch exists for the release's major version, create one.
88
+
```
89
+
task release VERSION=X.Y.Z
90
+
```
91
+
92
+
This will:
93
+
94
+
1. Promote the `Unreleased` section of `CHANGELOG.md` to `vX.Y.Z`.
95
+
1. Commit, tag (`vX.Y.Z`), and force-update the major version tag (`vX`).
96
+
1. Push the commit and both tags to `origin`.
97
+
1. Create a **draft**[GitHub release](https://docs.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release) for `vX.Y.Z`, pre-filled with the corresponding `CHANGELOG.md` section as release notes.
98
+
99
+
Before running, make sure to:
100
+
101
+
- Update the action refs in `README.md` examples if incrementing major (e.g., `uses: go-task/setup-task@v1` -> `uses: go-task/setup-task@v2`).
102
+
- Run `task check` and `task build` to ensure `dist/` is up to date.
0 commit comments