-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.45 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Continous Deployment
on:
push:
branches: [prod, main, dev]
jobs:
release:
name: Update Semver and Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Semantic Release
uses: cycjimmy/[email protected]
id: semver
with:
semantic_version: 17
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/npm
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/github
semantic-release-slack-bot
- name: Sentry Release
if: steps.semver.outputs.new_release_published == 'true'
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: ${{ github.ref_name }}
version: ${{ steps.semver.outputs.new_release_version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SEMANTIC_RELEASE_PACKAGE: "middleware"