Create a release script
bluwy opened this issue Β· comments
Bjorn Lu commented
I am finally tired of releasing things manually
Currently, when making new changes, update the relevant CHANGELOG.md
with a description of the change under the ## Unreleased
header (Create one if not available).
When releasing the script should:
- Scan all packages
CHANGELOG.md
for new changes to be published - Ask which package to publish (exit if none)
- Select a package
- Ask major/minor/patch type
- Select a type
- Update
package.json
number - Update
CHANGELOG.md
## Unreleased
to## <version> (YYYY-MM-DD)
git commit
pnpm publish
- Create a new git tag
- Collect
CHANGELOG.md
and release to GitHub Release. (CLI) (Note: check if it's safe to publish local commit SHA to remote ahead of time) - Done!