@tablecheck/semantic-release-config
v7.2.0
Published
Configuration for creating gitlab releases for TableCheck applications in a sensible format
Downloads
62
Keywords
Readme
@tablecheck/semantic-release-config
A semantic-release config, used with our commitlint settings and does the following steps.
- Increments the version according to conventional-commits.
- Publishes a "GitHub Release" with correctly linked JIRA tickets.
- Publishes a message to a slack webhook.
- Outputs the new version to
version.txt
for ease of use in other reports.
Required CI Variables
| Variable | Usage | Where to get it from |
| ------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GITHUB_TOKEN | API Token Used for parsing previous releases and publishing the new one | Available in semaphoreci github-releases
secret or see https://github.com/semantic-release/github#github-authentication |
| SLACK_WEBHOOK | Used for posting slack updates | Go to the Semantic Release
App and generate a new webhook for the channel you wish to post to. https://api.slack.com/apps/A021U4J1CQ4/incoming-webhooks |
Usage
Setup the configuration file of semantic-release as follows. For more details on configuration see here (link).
To run a release, simply run npx semantic-release
(semantic-release
is a required peer-dependency)
// release.config.js
module.exports = {
extends: '@tablecheck/semantic-release-config',
};
If your release also needs to publish an npm package, use the following config. Refer to the @semantic-release/npm docs for required environment variables and setup.
// release.config.js
module.exports = {
extends: '@tablecheck/semantic-release-config/with-npm-publish',
};