Skip to content

Commit

Permalink
Set version from release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyvii committed Dec 3, 2024
1 parent 68d524b commit 9113d5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:

- name: Set release tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Set version
run: npm version $TAG
env:
TAG: ${{ steps.vars.outputs.tag }}

- name: Publish extension
if: success() && startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 9113d5f

Please sign in to comment.