Skip to content

Commit

Permalink
ci: add slack notifications support for releases (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
abalias authored Nov 17, 2022
1 parent 08cd7c0 commit 93b33a8
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 12 additions & 1 deletion castor/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut castor lib ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion iris/client/scala-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut iris-client ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion iris/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut iris-service image ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion mercury/mercury-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut mercury lib ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion mercury/mercury-mediator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut mercury-mediator image ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion pollux/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut pollux lib ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion prism-agent/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut prism-agent image ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down
13 changes: 12 additions & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-monorepo": "^7.0.5"
"semantic-release-monorepo": "^7.0.5",
"semantic-release-slack-bot": "^3.5.3"
},
"extends": "semantic-release-monorepo",
"release": {
Expand Down Expand Up @@ -49,6 +50,16 @@
],
"message": "chore(release): cut shared lib ${nextRelease.version} release [skip ci]\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version"
}
}
]
]
}
Expand Down

0 comments on commit 93b33a8

Please sign in to comment.