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 }}