diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f136b4c0..2bd1673bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: Release CI on: + push: + branches: [master] workflow_dispatch: inputs: version: @@ -69,6 +71,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Release ${{ github.event.inputs.version }} + if: github.event_name == 'workflow_dispatch' run: | git reset --hard npm run release:${{ github.event.inputs.version }} --ci @@ -79,3 +82,16 @@ jobs: GIT_EMAIL: ${{ secrets.GIT_EMAIL }} GPG_KEY: ${{ secrets.GPG_KEY }} GIT_SIGNING_KEY: ${{ secrets.GIT_SIGNING_KEY }} + + - name: Release patch:beta + if: github.event_name == 'push' + run: | + git reset --hard + npm run release:patch --ci --preRelease=beta + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GIT_USER: ${{ secrets.GIT_USER }} + GIT_EMAIL: ${{ secrets.GIT_EMAIL }} + GPG_KEY: ${{ secrets.GPG_KEY }} + GIT_SIGNING_KEY: ${{ secrets.GIT_SIGNING_KEY }}