diff --git a/.github/workflows/auto-publish.yaml b/.github/workflows/auto-publish.yaml index 58883b24..c7238d91 100644 --- a/.github/workflows/auto-publish.yaml +++ b/.github/workflows/auto-publish.yaml @@ -52,7 +52,9 @@ jobs: npm-publish: name: npm-publish runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' }} + if: | + ${{ github.event.head_commit.message == 'chore: publish' + && github.ref == 'refs/heads/main' }} needs: - test - test-cli