diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1ef4a12..5882a8b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,13 +35,19 @@ jobs: restore-keys: | ${{ runner.os }}-node-modules- + - name: Tag Name + id: set_tag + run: | + echo ::set-output name=tag::$(git describe HEAD --abbrev=0) + echo "Tag: ${{ steps.set_tag.outputs.tag }}" + - name: Create Release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - release_name: Release git describe HEAD --abbrev=0 - tag_name: git describe HEAD --abbrev=0 + release_name: Release ${{ steps.tag.outputs.tag }} + tag_name: ${{ steps.tag.outputs.tag }} body_path: CHANGELOG.md draft: false prerelease: false