From 34577178ff686c07ee8db591b87dcfd05b0ec1bd Mon Sep 17 00:00:00 2001 From: jaybuidl Date: Thu, 16 Feb 2023 21:07:20 +0000 Subject: [PATCH] chore: sentry release workflow --- .github/workflows/sentry-release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/sentry-release.yml b/.github/workflows/sentry-release.yml index c21f9f0..3f8a10c 100644 --- a/.github/workflows/sentry-release.yml +++ b/.github/workflows/sentry-release.yml @@ -13,6 +13,8 @@ jobs: release: runs-on: ubuntu-latest environment: production + outputs: + version: ${{ steps.set-version.outputs.version }} steps: - uses: actions/checkout@v2 @@ -27,6 +29,10 @@ jobs: - name: Build and deploy subgraph run: yarn build + - name: Set version + id: set-version + run: echo "version=v$(cat package.json | jq -r .version)-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + - name: Create Sentry release uses: getsentry/action-release@v1.2.1 env: @@ -35,5 +41,6 @@ jobs: SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} with: environment: production + version: ${{ steps.set-version.outputs.version }} sourcemaps: ./dist