diff --git a/.github/workflows/hotfix.yml b/.github/workflows/hotfix.yml index c9b1ef5ce..fdc2700e3 100644 --- a/.github/workflows/hotfix.yml +++ b/.github/workflows/hotfix.yml @@ -190,6 +190,16 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create GitHub Release + if: ${{ !inputs.dry_run }} + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + run: | + gh release create "v${VERSION}" \ + --title "v${VERSION} (hotfix)" \ + --generate-notes + - name: Clean up next dist-tag if: ${{ !inputs.dry_run }} env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3be885b2..5cea506f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -208,6 +208,17 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create GitHub pre-release + if: ${{ !inputs.dry_run }} + env: + GH_TOKEN: ${{ github.token }} + PRE_VERSION: ${{ steps.prerelease.outputs.pre_version }} + run: | + gh release create "v${PRE_VERSION}" \ + --title "v${PRE_VERSION}" \ + --generate-notes \ + --prerelease + - name: Verify publish if: ${{ !inputs.dry_run }} env: @@ -331,6 +342,17 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create GitHub Release + if: ${{ !inputs.dry_run }} + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + run: | + gh release create "v${VERSION}" \ + --title "v${VERSION}" \ + --generate-notes \ + --latest + - name: Clean up next dist-tag if: ${{ !inputs.dry_run }} env: