From ab28ab3edadf906bf1f4378dc91a5113f640c298 Mon Sep 17 00:00:00 2001 From: PatrykWalach <35966385+PatrykWalach@users.noreply.github.com> Date: Sat, 22 Nov 2025 19:16:02 +0100 Subject: [PATCH] publish to test registy in PRs --- .github/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 121b6a8ec..d48e0f7b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -332,14 +332,7 @@ jobs: main-release: name: Main NPM release runs-on: ubuntu-latest - if: >- - github.event_name == 'push' && - github.repository == 'isographlabs/isograph' && - ( - (github.ref == 'refs/heads/main' && - github.ref_type != 'tag') || - startsWith(github.ref, 'refs/heads/deploy/') - ) + if: github.repository == 'isographlabs/isograph' needs: [all-checks-passed] steps: - uses: actions/checkout@v2 @@ -419,6 +412,13 @@ jobs: run: pnpm build-swc - name: Publish to NPM + if: >- + github.event_name == 'push' && + ( + (github.ref == 'refs/heads/main' && + github.ref_type != 'tag') || + startsWith(github.ref, 'refs/heads/deploy/') + ) run: | for pkg in libs/*; do echo PUBLISHING $pkg @@ -429,6 +429,10 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - name: Publish to pkg.pr.new + if: github.event_name == 'pull_request' + run: pnpx pkg-pr-new publish './libs/*' + versioned-release: name: Versioned NPM release runs-on: ubuntu-latest