From 0b28b9780482f9e37edaf02c2dc1a451c5cf8091 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Wed, 4 Aug 2021 20:48:20 +0800 Subject: [PATCH] feat: auto publish when merging to alpha (#728) BREAKING CHANGE: pre-major release on alpha --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a1bd667..a6d2361c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - alpha tags: - '!*' pull_request: @@ -50,7 +51,7 @@ jobs: CI: true - name: Release - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/alpha') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}