Skip to content

Commit 3457717

Browse files
committed
chore: sentry release workflow
1 parent a1fd937 commit 3457717

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/sentry-release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
environment: production
16+
outputs:
17+
version: ${{ steps.set-version.outputs.version }}
1618
steps:
1719
- uses: actions/checkout@v2
1820

@@ -27,6 +29,10 @@ jobs:
2729
- name: Build and deploy subgraph
2830
run: yarn build
2931

32+
- name: Set version
33+
id: set-version
34+
run: echo "version=v$(cat package.json | jq -r .version)-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
35+
3036
- name: Create Sentry release
3137
uses: getsentry/[email protected]
3238
env:
@@ -35,5 +41,6 @@ jobs:
3541
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
3642
with:
3743
environment: production
44+
version: ${{ steps.set-version.outputs.version }}
3845
sourcemaps: ./dist
3946

0 commit comments

Comments
 (0)