diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17444e2..4db61ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,12 +88,15 @@ jobs: with: gh-cli-version: 2.49.2 - - name: Create version tag + - name: Create tag if: steps.tag.outputs.name != '' run: | git tag -a "${{steps.tag.outputs.name}}" -m "release version ${{steps.tag.outputs.name}}" git push origin "${{steps.tag.outputs.name}}" - gh release create ${{steps.tag.outputs.name}} --generate-notes --notes-start-tag $(git tag -l "v*.*" | sort -V | tail -2 | head -1) + + - name: Create release + if: steps.tag.outputs.name != '' + run: gh release create ${{steps.tag.outputs.name}} --generate-notes --notes-start-tag $(git tag -l "v*.*" | sort -V | tail -2 | head -1) env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} @@ -102,7 +105,7 @@ jobs: npm config set registry="https://registry.npmjs.org/" npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN} env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }} + NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - name: Publish package run: npm publish