Here’s a sample from Angular’s commit message guidelines:
git commit -m 'docs(changelog): update changelog to beta.5'
standard-version bumps the version and generates
Create a new token. Select the scope
repo for access to private repositories).
conventional-github-releaser with the token set as the environment variable:
CONVENTIONAL_GITHUB_RELEASER_TOKEN=<MY_TOKEN> npx conventional-github-releaser
conventional-github-releaser creates a GitHub release from the Git metadata.
Besides using the environment variable
CONVENTIONAL_GITHUB_RELEASER_TOKEN, the token can also be passed via the flag
npx conventional-github-releaser -t <MY_TOKEN>
To see a demo, check out conventional-github-releaser-demo.
conventional-github-releaser failing with
GitHubError: Validation Failed (422)?
This can happen for several reasons:
- The release for the version already exists on GitHub.
- The repository url is invalid in
See conventional-changelog/releaser-tools#50 for more details.
How can I debug
Set the environment variable
DEBUG=conventional-github-releaser before running the command:
DEBUG=conventional-github-releaser npx conventional-github-releaser