node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

@quarterto/package-version-jira-release

package-version-jira-release

Create a release on JIRA using the version number from package.json

usage

Create env variables JIRA_HOST (the hostname of your JIRA installation, which needs the REST API enabled), JIRA_PROJECT (the id of the project you want to create releases in, which should be a short alphabetic string), and JIRA_USERNAME & JIRA_PASSWORD (these should be for a user that has at least Project Admin permissions on the project). Run:

package-version-jira-release

If SOURCE_VERSION is set (i.e. it's running on Heroku), it'll be mentioned in the release description.

It's handy to run this with npm lifecycle scripts. You might consider postinstall, postpublish or heroku-postbuild.

licence

MIT