Detail
Requirements with workaround
Use pnpm and set packageManager in package.json
correctly
So that GitHub Action can set up pnpm correctly. You can also manually setup the pnpm version in the GitHub Action workflow file.
Use Conventional Commits and follow Semantic Versioning
So that it can provide recommended version in CI. It’s OK to not follow this rule if you manually decide the next version and disable GitHub release.
What it does
Disable built-in npm
, version
plugins
Provide recommended version in CI
- code and idea from conventional-changelog
- Support preMajor option.
Use bumpp for the next version locally
Bump all packages to the new version
Run pnpm -r publish --access public --no-git-checks
- pnpm publish
- Appendix
--tag {tag}
if it’s a pre-release.
Generate changelog locally if needed
Run changelogithub for GitHub release if needed
- It will read GitHub token from
GITHUB_TOKEN
environment variable orgh auth token
output.
Last updated on