New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deployment-notifier

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deployment-notifier

Sends notifications about deployments for a Git repo

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Deployment Notifier

Build Status Coverage Status

Lets you know when you should deploy and when the deployment is complete.

Useful when:

  • You need a human to make a decision of which version to deploy (if you want to do that when committing, look at semantic-release or similar).
  • You're using Slack
  • You have another webhook that also needs to record deployment

Environment variables

All environment variables are required.

Define to notify Slack

  • NODE_DEPLOYMENT_NOTIFIER_SLACK_WEBHOOK_URL: URL to the Slack webhook
  • NODE_DEPLOYMENT_NOTIFIER_SLACK_CHANNEL: Slack channel name to post messages to, e.g. #deployments
  • NODE_DEPLOYMENT_NOTIFIER_SLACK_USERNAME: Username to use when posting, e.g. Row Bot

Define for generic webhook

  • NODE_DEPLOYMENT_NOTIFIER_WEBHOOK_URL: URL to use when posting webhook with deployment info
  • NODE_DEPLOYMENT_NOTIFIER_WEBHOOK_BASIC_AUTH_USERNAME: Basic auth username for webhook
  • NODE_DEPLOYMENT_NOTIFIER_WEBHOOK_BASIC_AUTH_PASSWORD: Basic auth password for webhook

Usage

Install module globally:

npm install -g deployment-notifier

Suggest deployment

Sends Slack notification with a suggestion to make a deployment.

Includes changelog (since last deployment).

Usage

  Usage: deployment-suggestion [options]

  Options:

    -h, --help                             output usage information
    -N, --app-name <app name>              Application name
    -T, --latest-deployment-tag <git tag>  Name of tag for latest deployment
    -U, --deploy-url <url>                 URL where a deployment can be started

Example

$ deployment-suggestion --app-name "some app" --tag-name v1.0.0 

Record deployment

Sends message after a deployment has completed, to both Slack webhook and HTTP webhook.

Includes changes in the new version.

Usage

  Usage: deployment-completed [options]

  Options:

    -h, --help                               output usage information
    -N, --app-name <app name>                Application name
    -M, --message <release notes>            Release notes (required unless providing tags)
    -P, --previous-deployment-tag <git tag>  Name of tag for previous deployment
    -T, --deployment-tag <git tag>           Name of tag for latest deployment
    -E, --environment <target environment>   The environment deployment was targeted at

License

MIT

FAQs

Package last updated on 13 Oct 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc