Skip to content

Commit

Permalink
fix: Fixed tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Soares (CTW) authored and Diogo Soares (CTW) committed May 22, 2022
1 parent a0fd7c9 commit 81a56e6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,24 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Retrieve version
- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v1
with:
commit-ish: 'HEAD~'

- name: Show Tag
id: display
run: |
echo "::set-output name=TAG_NAME::$(git describe --abbrev=0 --tags)"
id: version
echo 'Output from Find Tag: ${{steps.tagger.outputs.tag}}'
- name: Tag last-release
- name: Push new Tag
shell: bash
run: |
git tag -f $TAG_NAME
git push origin $TAG_NAME --force
env:
TAG_NAME: ${{ steps.version.outputs.TAG_NAME }}
TAG_NAME: ${{steps.tagger.outputs.tag}}

- name: Publish package on NPM 📦
run: npm publish ./dist/packages/graphql-mesh --access public
Expand Down

0 comments on commit 81a56e6

Please sign in to comment.