This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
@quarterto/package-version-jira-release with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Create a release on JIRA using the version number from package.json
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_PASSWORD (these should be for a user that has at least Project Admin permissions on the project). Run:
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.