-
Notifications
You must be signed in to change notification settings - Fork 15
32 lines (28 loc) · 1011 Bytes
/
main.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
name: Sentry Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release-sentry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- name: Install and test using npm
run: |
npm install
export DATABASE_URL=$(npx pg-test start)
npm run test --workspaces --if-present
npx pg-test stop
- name: Create Sentry release
uses: getsentry/action-release@586b62368d564f25d694ce05fcb9cf53de65ac4f # v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# SENTRY_URL: https://sentry.io/
with:
environment: production