From d686dd720215704594e10d168ff732e393612090 Mon Sep 17 00:00:00 2001 From: gioboa Date: Thu, 2 Oct 2025 09:10:14 +0200 Subject: [PATCH 1/2] =?UTF-8?q?ci:=20add=20ci=20flow=20=F0=9F=98=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{release.yml => ci.yml} | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) rename .github/workflows/{release.yml => ci.yml} (65%) diff --git a/.github/workflows/release.yml b/.github/workflows/ci.yml similarity index 65% rename from .github/workflows/release.yml rename to .github/workflows/ci.yml index 884d8d2..a73c511 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,10 @@ -name: Release +name: CI Flow on: - - workflow_dispatch + pull_request: + push: + branches: + - main jobs: publish: @@ -9,6 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: PNPM Install uses: pnpm/action-setup@v4 @@ -34,8 +39,13 @@ jobs: - name: Build run: pnpm build - - name: Publish to npm - working-directory: packages/devtools - run: npm publish --access public + - name: Create Release Pull Request or Publish + if: github.ref == 'refs/heads/main' + id: changesets + uses: changesets/action@v1 + with: + publish: pnpm release env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e86625f81d4820f89f60bffd21bc3965fc3129fb Mon Sep 17 00:00:00 2001 From: gioboa Date: Thu, 2 Oct 2025 09:11:51 +0200 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20add=20ci=20flow=20=F0=9F=98=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a73c511..a2d299f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ on: jobs: publish: runs-on: ubuntu-latest + + if: github.ref == 'refs/heads/main' + steps: - name: Checkout uses: actions/checkout@v4