Skip to content

chore(app): migrate to yarn 4 (#61) #6

chore(app): migrate to yarn 4 (#61)

chore(app): migrate to yarn 4 (#61) #6

name: Release Source maps to Sentry
on:
push:
branches:
- main
- dev
paths:
- 'apps/core/src/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
- 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"