mup-deploy-notifications

0.5.3 • Public • Published

Mup Deploy Notifications

Sends Slack notifications when a deploy starts and when it succeeds or fails.

Install it with:

npm install mup-deploy-notifications

and add it to your plugins array in your mup config:

module.exports = {
  // ... rest of config

  plugins: [ 'mup-deploy-notifications' ]
}

Next, add a deployNotifications object to your mup config:

module.exports = {
  // ... rest of config

  deployNotifications: {
    // Add the incoming webhooks app (https://slack.com/apps/A0F7XDUAZ-incoming-webhooks)
    // to get a webhook url
    slackWebhookUrl: 'https://hooks.slack.com/services/789/1234345/abcdefg',
    // Name of slack channel to receive the messages
    slackChannel: '#deploys'
  }
}

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mup-deploy-notifications

    Weekly Downloads

    68

    Version

    0.5.3

    License

    MIT

    Unpacked Size

    5.67 kB

    Total Files

    5

    Last publish

    Collaborators

    • zodern