A script to build releases based on Standard conventional changelog.
npm i --save-dev angular-release
# or
yarn add -D angular-release
npx angular-release
- you choose the kind of release you want to do (see screenshot below)
release-candidatepatchminormajor
- the script will update your
package.jsonfile - create or update
CHANGELOG.md(unless you choosedrelease-candidate) - commit
chore(release): vX.Y.Z - push
- tag (unless you choosed
release-candidate) - and finally create a Github Release (unless you choosed
release-candidateand only ifGITHUB_OAUTH_TOKENenvironment variable is passed to node)
To create a Github Release you must add the GITHUB_OAUTH_TOKEN environment variable. There is two way to do it :
- create a
.envfile withGITHUB_OAUTH_TOKENvariable - set the environment variable before running the script:
GITHUB_OAUTH_TOKEN=xxx node_modules/.bin/angular-release
GITHUB_OAUTH_TOKEN: Github token used to create Github releaseENABLE_RELEASE_CANDIDATE: Enable release candidate featureRELEASE_CANDIDATE_PREID: release candidate pre-id string (default: rc)ALLOW_RELEASE_CANDIDATE_TAG: Allow release candidate to create tag with the chosen versionALLOW_RELEASE_CANDIDATE_CHANGELOG: Allow release candidate to update changelogALLOW_RELEASE_CANDIDATE_GH_RELEASE: Allow release candidate to create Github release
