angular-release
v2.2.1
Published
A tool to builds releases based on Angular conventional changelog preset (inspired by Gulp "Automate release workflow" recipe).
Downloads
493
Readme
Angular Release
A script to build releases based on Standard conventional changelog.
Install
npm i --save-dev angular-release
# or
yarn add -D angular-releaseUsage
npx angular-releaseHow it works
- 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)
Github Release
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
All available env options:
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
