Socket
Book a DemoInstallSign in
Socket

heroku-release

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-release

Release node.js apps to heroku without using Git (so that .gitignored assets are included)

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

heroku-release

Release apps to heroku without using Git (so that .gitignored assets are included)

Build Status Dependency Status NPM version

Installation

npm install heroku-release --save

Usage

Run heroku auth:token to get your secret heroku api token. Put this value in the environment variable HEROKU_API_TOKEN.

API

const {publish, promote} = require('heroku-release');

publish(
  'my-staging-app-name',
  __dirname,
  options,
).then(() => {
  return promote('my-pipeline', 'my-staging-app-name', 'my-prod-app-name', options);
}).done();

options:

  • auth - defaults to process.env.HEROKU_API_TOKEN
  • silent - disable all logging output, defaults to false
  • version - human readable tag to identify the release, defaults to the current date and time

CLI

heroku-release publish --app my-app-name

Options:

  • --app - the app name
  • --dir - the directory (relative to the current working directory), defaults to current working directory
  • --version - human readable tag to identify the release, defaults to the current date and time or build number in CircleCI
  • --auth - Heroku api token, defaults to process.env.HEROKU_API_TOKEN
  • --silent - Disable all console output, except errors
heroku-release promote --pipeline my-pipeline-name --source my-staging-app-name --target my-prod-app-name

Options:

  • --pipeline - the pipeline name or ID
  • --source - the source app's name or ID
  • --target - the target app's name or ID
  • --auth - Heroku api token, defaults to process.env.HEROKU_API_TOKEN
  • --silent - Disable all console output, except errors

License

MIT

FAQs

Package last updated on 05 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts