From 318592653c399d0735b2c4239c9db34d3d204015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Mon, 11 Jul 2022 11:56:32 +0200 Subject: [PATCH] ci: fix sentry release version (#481) --- .github/workflows/publish_npmjs.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_npmjs.yaml b/.github/workflows/publish_npmjs.yaml index e0b5047..268d6ad 100644 --- a/.github/workflows/publish_npmjs.yaml +++ b/.github/workflows/publish_npmjs.yaml @@ -19,6 +19,10 @@ jobs: - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - id: cleanVersion + run: | + version="${{ github.event.release.release.tag_name }}" + echo "::set-output name=value::${version/v}" - name: Create Sentry release uses: getsentry/action-release@v1 env: @@ -27,4 +31,4 @@ jobs: SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} with: sourcemaps: ./build/static/js - version: ${{ github.ref }} + version: ${{ steps.cleanVersion.outputs.value }}