From 7245ec745ee39f7c852e382ea8d2e169cce92041 Mon Sep 17 00:00:00 2001 From: iosh Date: Sun, 1 Dec 2024 21:30:07 +0800 Subject: [PATCH] chore: set publish job only work main branch --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 21c1fc0..3d523b1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -210,6 +210,7 @@ jobs: npm run test publish: name: Publish + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest needs: - test-macOS-windows-binding