chore: project rename #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sentry release source maps | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- 'apps/core/src/**' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install projects dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Generate sourcemaps from build | |
run: yarn build:prod --filter=@snipcode/core | |
- name: Create a Sentry release | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: snipcode | |
SENTRY_PROJECT: backend | |
VERSION: ${{ github.sha }} | |
run: | | |
curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION="2.2.0" bash | |
sentry-cli releases new "$VERSION" | |
sentry-cli releases files "$VERSION" upload-sourcemaps ./apps/core/build | |
sentry-cli releases finalize "$VERSION" |