From f018e5163788e75fbc8b5676c99f9691391d7b44 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Fri, 19 Mar 2021 00:33:35 +0800 Subject: [PATCH] chore: only trigger release when I actually want it --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f04b49e..783e13c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,8 @@ on: jobs: test: + if: "!contains(github.event.head_commit.message, 'ci skip')" + strategy: matrix: os: [ubuntu-latest] @@ -46,6 +48,7 @@ jobs: - name: Release run: pnpx semantic-release --branches main + if: "contains(github.event.head_commit.message, 'publish release')" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}