diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 981c586..cf69932 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -91,6 +91,11 @@ jobs: run: | git config user.email "gh-actions@users.noreply.github.com" git config user.name "GitHub Actions" + - name: Tag commit + uses: tvdias/github-tagger@v0.0.1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + tag: "${{ env.version }}" - name: Install dependencies run: yarn - uses: actions/setup-node@v3 @@ -143,11 +148,6 @@ jobs: yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version) # HACK: Restore npm package name sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json - - name: Tag commit - uses: tvdias/github-tagger@v0.0.1 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - tag: "${{ env.version }}" - name: Upload docs uses: actions/upload-artifact@v3 with: