Skip to content

Commit 10fbc90

Browse files
Merge pull request #2 from StreetSupport/feature/3001-set-up-sentry-error-monitoring-and-logging
Feature/3001 - set up sentry error monitoring and logging
2 parents 4dc4dfd + 4172428 commit 10fbc90

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/azure-deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
permissions:
1818
contents: read #This is required for actions/checkout
1919

20+
env:
21+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
22+
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
23+
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
24+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
25+
SENTRY_ENV: ${{ github.ref_name == 'main' && 'production' || 'staging' }}
26+
2027
steps:
2128
- uses: actions/checkout@v4
2229

@@ -25,6 +32,11 @@ jobs:
2532
with:
2633
node-version: '20.x'
2734

35+
- name: Setup Sentry
36+
run: |
37+
npm install -g @sentry/cli
38+
sentry-cli --auth-token $SENTRY_AUTH_TOKEN info
39+
2840
- name: npm install, build, and test
2941
run: |
3042
npm install
@@ -65,7 +77,7 @@ jobs:
6577
uses: azure/webapps-deploy@v3
6678
with:
6779
# Current: Using slots in a single web app
68-
app-name: ${{ vars.AZURE_APP_NAME }}
80+
app-name: ${{ secrets.AZURE_APP_NAME }}
6981
# Update to 'Production' || 'Staging' when configure additional environment
7082
slot-name: ${{ github.ref_name == 'main' && 'Production' || 'Production' }}
7183

0 commit comments

Comments
 (0)