From 21d77ce87ae4c9876d8b10b34110818e4732ab33 Mon Sep 17 00:00:00 2001 From: Jacek Tomaszewski Date: Mon, 8 Dec 2025 09:07:05 +0100 Subject: [PATCH] feat(ci): add pkg.pr.new preview releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable preview package releases on pull requests and workflow dispatch using pkg.pr.new. This allows testing packages before official release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/publish-preview.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish-preview.yml diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml new file mode 100644 index 000000000..c0482756e --- /dev/null +++ b/.github/workflows/publish-preview.yml @@ -0,0 +1,31 @@ +name: Publish Preview + +on: + pull_request: + workflow_dispatch: + +env: + NX_BRANCH: ${{ github.event.number }} + NX_RUN_GROUP: ${{ github.run_id }} + +jobs: + publish-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + + - name: Setup + uses: ./.github/actions/setup-step + + - name: Build + run: yarn nx run-many --target=build --all + + - name: Publish Preview + run: npx pkg-pr-new publish './dist/packages/*'