deploy-notify-slack 0.5.0 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -8
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -17,8 +17,6 @@ You can use default message template with the following env variables:
|
|
|
17
17
|
|
|
18
18
|
- TITLE - ('Deployment' by default) notification title
|
|
19
19
|
- CHANGELOG_PATH - path of your deployed version details file (`changelog` by default as well as we assume that the package installed locally, so this option is required if the package installed globally)
|
|
20
|
-
- COLOR - ('#7f8583' by default) left bar notification color. Should be hex color code without `#` symbol
|
|
21
|
-
- EMOJI - (':rocket:' by default) emoji to be displayed in the notification title
|
|
22
20
|
|
|
23
21
|
> version details file is a Markdown file having the name like `${STAGE}-v${VERSION}.md`.
|
|
24
22
|
>
|
|
@@ -34,11 +32,11 @@ You can use default message template with the following env variables:
|
|
|
34
32
|
|
|
35
33
|
- In Bitbucket pipeline or another place you wish to notify about just deployed version of your application you can add dev dependency
|
|
36
34
|
```shell
|
|
37
|
-
npm i --no-save deploy-notify-slack@^0.
|
|
35
|
+
npm i --no-save deploy-notify-slack@^0.5
|
|
38
36
|
```
|
|
39
37
|
or major version
|
|
40
38
|
```shell
|
|
41
|
-
npm i --location=global deploy-notify-slack@^0.
|
|
39
|
+
npm i --location=global deploy-notify-slack@^0.5
|
|
42
40
|
```
|
|
43
41
|
|
|
44
42
|
- run the scrypt with your env variables:
|
|
@@ -52,7 +50,7 @@ Bitbucket pipeline example:
|
|
|
52
50
|
name: Notify deploy
|
|
53
51
|
image: node:16-alpine
|
|
54
52
|
script:
|
|
55
|
-
- npm i --location=global deploy-notify-slack
|
|
53
|
+
- npm i --location=global deploy-notify-slack
|
|
56
54
|
- VERSION=$(npm run version --silent)
|
|
57
55
|
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL} STAGE=dev VERSION=$VERSION node ./node_modules/deploy-notify-slack/notify
|
|
58
56
|
```
|
|
@@ -64,7 +62,7 @@ or install package globally
|
|
|
64
62
|
name: Notify Slack
|
|
65
63
|
image: node:16-alpine
|
|
66
64
|
script:
|
|
67
|
-
- npm i --location=global deploy-notify-slack
|
|
65
|
+
- npm i --location=global deploy-notify-slack
|
|
68
66
|
- VERSION=$(npm run version --silent)
|
|
69
67
|
- PWD=$(pwd)
|
|
70
68
|
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL} STAGE=dev VERSION=$VERSION CHANGELOG_PATH=$PWD/changelog node /usr/local/lib/node_modules/deploy-notify-slack/notify.js
|
|
@@ -113,7 +111,7 @@ pipelines:
|
|
|
113
111
|
name: Notify Slack
|
|
114
112
|
image: node:16-alpine
|
|
115
113
|
script:
|
|
116
|
-
- npm i --location=global deploy-notify-slack
|
|
114
|
+
- npm i --location=global deploy-notify-slack
|
|
117
115
|
- VERSION=$(npm run version --silent)
|
|
118
116
|
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL} STAGE=dev VERSION=$VERSION node /usr/local/lib/node_modules/deploy-notify-slack/notify.js
|
|
119
117
|
|
|
@@ -158,4 +156,4 @@ Then you can run the script with the following command:
|
|
|
158
156
|
npm i --location=global deploy-notify-slack@latest
|
|
159
157
|
CUSTOM_MESSAGE=$(cat message.json)
|
|
160
158
|
SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL} CUSTOM_MESSAGE=$CUSTOM_MESSAGE node /usr/local/lib/node_modules/deploy-notify-slack/notify.js
|
|
161
|
-
```
|
|
159
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deploy-notify-slack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
|
+
"private": false,
|
|
4
5
|
"description": "Send Slack notification about deploy with version comments",
|
|
5
6
|
"main": "notify.js",
|
|
6
7
|
"scripts": {
|
|
@@ -10,12 +11,12 @@
|
|
|
10
11
|
},
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
13
|
-
"url": "git+ssh://git@
|
|
14
|
+
"url": "git+ssh://git@github.com/ClockwiseSoftware/deploy-notify-slack.git"
|
|
14
15
|
},
|
|
15
16
|
"author": "mike.onofrienko@clockwise.software",
|
|
16
17
|
"license": "MIT",
|
|
17
18
|
"bugs": {
|
|
18
|
-
"url": "https://
|
|
19
|
+
"url": "https://github.com/ClockwiseSoftware/deploy-notify-slack/issues"
|
|
19
20
|
},
|
|
20
|
-
"homepage": "https://
|
|
21
|
+
"homepage": "https://github.com/ClockwiseSoftware/deploy-notify-slack#readme"
|
|
21
22
|
}
|