Skip to content

Commit

Permalink
Add SLACK_PUBLISHED_CHANNEL env var
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan committed Aug 19, 2021
1 parent 47397f7 commit 93d4d26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if (!slack.webhook && process.env.SLACK_WEBHOOK) {
slack.webhook = process.env.SLACK_WEBHOOK;
}

if (!slack.channel && process.env.SLACK_PUBLISHED_CHANNEL) {
slack.channel = process.env.SLACK_PUBLISHED_CHANNEL;
}

(async() => {
console.log(`☕️ ${name} v${version}`);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "published",
"version": "1.8.1",
"version": "1.8.2",
"description": "📦 Opinionated NPM publish program",
"keywords": [
"npm",
Expand Down

0 comments on commit 93d4d26

Please # to comment.