12.20.1 • Published 3 years ago

heroku-nodejs-build v12.20.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

heroku-nodejs-build

Scripts to help build, package, release and deploy node apps to Heroku

Installation

npm i -d heroku-nodejs-build

Requirements

  • Docker installed
  • A script to build and test your application located at scripts/verify

Usage

In package.json add the following scripts

  "scripts": {
    "verify": "scripts/verify",
    "package": "node_modules/heroku-nodejs-build/scripts/package",
    "release": "node_modules/heroku-nodejs-build/scripts/release",
    "deploy": "node_modules/heroku-nodejs-build/scripts/deploy"
  }

To release a new version of your app run

npm run package && \
GITHUB_REPO=your/github-repo \
GITHUB_TOKEN=your-github-token \
npm run release

Get a github token here

To deploy a version of your app run

RELEASE_TAG=the-tag or "latest" \
GITHUB_REPO=your/github-repo \
GITHUB_TOKEN=your-github-token \
HEROKU_APP=your-heroku-app \
HEROKU_TOKEN=your-heroku-token \
npm run deploy

Get a heroku token with heroku auth:token

12.20.1

3 years ago

10.22.1

4 years ago

10.22.0

4 years ago

10.15.3

5 years ago

8.11.3

6 years ago

8.9.2

6 years ago

8.9.1

7 years ago

8.9.0

7 years ago

8.8.1

7 years ago