https://github.com/eclass/semantic-release-heroku-deploy
semantic-release plugin to deploy apps to heroku via api
https://github.com/eclass/semantic-release-heroku-deploy
Last synced: 5 months ago
JSON representation
semantic-release plugin to deploy apps to heroku via api
- Host: GitHub
- URL: https://github.com/eclass/semantic-release-heroku-deploy
- Owner: eclass
- License: mit
- Created: 2020-09-03T15:38:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T09:22:33.000Z (about 1 year ago)
- Last Synced: 2025-03-11T10:32:53.626Z (about 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @eclass/semantic-release-custom-plugin
[](https://www.npmjs.com/package/@eclass/semantic-release-custom-plugin)
[](https://travis-ci.org/eclass/semantic-release-custom-plugin)
[](https://www.npmjs.com/package/@eclass/semantic-release-custom-plugin)
[](https://david-dm.org/eclass/semantic-release-custom-plugin)
[](https://david-dm.org/eclass/semantic-release-custom-plugin#info=devDependencies)
[](https://coveralls.io/github/eclass/semantic-release-custom-plugin?branch=master)
[](https://codeclimate.com/github/eclass/semantic-release-custom-plugin/maintainability)
[](https://github.com/semantic-release/semantic-release)
> [semantic-release](https://github.com/semantic-release/semantic-release) plugin to deploy app
| Step | Description |
|--------------------|---------------------------------------------------------------------------------------------|
| `verifyConditions` | Verify the presence of the `CUSTOM_ENV` environment variable. |
| `publish` | Deploy app. |
## Install
```bash
npm i -D @eclass/semantic-release-custom-plugin
```
## Usage
The plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/caribou/docs/usage/configuration.md#configuration):
```json
{
"plugins": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/gitlab",
"@eclass/semantic-release-custom-plugin"
]
}
```
## Configuration
### Environment variables
| Variable | Description |
| -------------------- | ----------------------------------------------------------------- |
| `CUSTOM_ENV` | A custom env var |
### Examples
```json
{
"plugins": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/gitlab",
"@eclass/semantic-release-custom-plugin"
]
}
```
```yml
# .gitlab-ci.yml
release:
image: node:alpine
stage: release
script:
- npx semantic-release
only:
- master
```
```yml
# .travis.yml
language: node_js
cache:
directories:
- ~/.npm
node_js:
- "12"
stages:
- test
- name: deploy
if: branch = master
jobs:
include:
- stage: test
script: npm t
- stage: deploy
script: npx semantic-release
```
## License
[MIT](https://tldrlegal.com/license/mit-license)