Skip to content

Commit

Permalink
Merge pull request #200 from LeoPlatform/revert-199-workflow/version-…
Browse files Browse the repository at this point in the history
…minus-tag-on-publish

Revert "Update npm-publish.yml"
  • Loading branch information
czirker authored Mar 26, 2024
2 parents 13e5fa5 + ecca201 commit fd6bb3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ jobs:
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/v*-})"
id: extract_tag


- run: version=$(echo "$${{steps.extract_version.outputs.version}}" | awk -F'-' '{print $1}')
- run: echo ref ${{github.ref}}
- run: echo version $version
- run: echo version ${{steps.extract_version.outputs.version}}
- run: echo tag ${{steps.extract_tag.outputs.tag}}

- run: npm version $version --no-git-tag-version --allow-same-version
- run: npm version ${{steps.extract_version.outputs.version}} --no-git-tag-version --allow-same-version

- if: steps.extract_tag.outputs.tag == github.ref
run: npm publish
Expand Down

0 comments on commit fd6bb3b

Please sign in to comment.