Skip to content

Commit

Permalink
ci(github): announce release in Slack
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Sep 19, 2024
1 parent e730250 commit 8b56a0d
Show file tree
Hide file tree
Showing 4 changed files with 1,172 additions and 17 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::118435662149:role/helix-gh-deploy-config-service
- name: Fetch AWS Secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
parse-json-secrets: true
secret-ids: |
/helix/github-action-secrets
# see https://github.com/aws-actions/aws-secretsmanager-get-secrets/issues/11
- name: unprefix variables
run: |
for variable in "${!_HELIX_GITHUB_ACTION_SECRETS_@}"; do
echo "${variable#_HELIX_GITHUB_ACTION_SECRETS_}=${!variable}" >> $GITHUB_ENV
done
- run: npm ci
- run: npm run semantic-release
env:
Expand Down
8 changes: 7 additions & 1 deletion .releaserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ module.exports = {
"label": "RUM Standalone 404 Hash"
}
]
}]
}],
["semantic-release-slack-bot", {
notifyOnSuccess: true,
notifyOnFail: true,
markdownReleaseNotes: true,
slackChannel: "rum-explorers",
}],
],
branches: ['main', '1.x'],
};
Loading

0 comments on commit 8b56a0d

Please sign in to comment.