Skip to content

Commit c07f3b2

Browse files
committed
chore: improved Sentry workflow
1 parent e1c0144 commit c07f3b2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/sentry-release.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,26 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
environment: Master
16+
outputs:
17+
version: ${{ steps.set-version.outputs.version }}
1618
steps:
1719
- uses: actions/checkout@v2
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 16
25+
26+
- name: Install dependencies
27+
run: yarn workspace @kleros/kleros-v2-web install
28+
29+
- name: Build and deploy subgraph
30+
run: yarn @kleros/kleros-v2-web build
31+
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+
working-directory: web
1836

1937
- name: Create Sentry release
2038
uses: getsentry/[email protected]
@@ -24,4 +42,6 @@ jobs:
2442
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
2543
with:
2644
environment: production
27-
sourcemaps: ./web/dist
45+
version: ${{ steps.set-version.outputs.version }}
46+
sourcemaps: ./web/dist
47+

0 commit comments

Comments
 (0)