From a1e075891f0770e78ca425c7c3bfcbec9f439e3e Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 18 Oct 2024 11:04:23 +0200 Subject: [PATCH 1/5] publish to `pkg.pr.new` --- .github/workflows/pkg-pr-new-publish.yml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pkg-pr-new-publish.yml diff --git a/.github/workflows/pkg-pr-new-publish.yml b/.github/workflows/pkg-pr-new-publish.yml new file mode 100644 index 00000000..57ddcbe0 --- /dev/null +++ b/.github/workflows/pkg-pr-new-publish.yml @@ -0,0 +1,29 @@ +name: pkg-pr-new Publish + +on: + pull_request: + push: + branches: + - "**" + tags: + - "!**" + +jobs: + prerelease: + name: pkg-pr-new Publish + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: yarn + + - name: Install dependencies + run: yarn install + + - name: Build and publish to pkg.pr.new + run: yarn dlx pkg-pr-new publish --no-template --compact packages/client-react-streaming packages/experimental-nextjs-app-support From f9441b1c49b6994938f797ad9f119dbd278d347f Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 18 Oct 2024 11:14:41 +0200 Subject: [PATCH 2/5] skip compact --- .github/workflows/pkg-pr-new-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pkg-pr-new-publish.yml b/.github/workflows/pkg-pr-new-publish.yml index 57ddcbe0..ea4b4fc4 100644 --- a/.github/workflows/pkg-pr-new-publish.yml +++ b/.github/workflows/pkg-pr-new-publish.yml @@ -26,4 +26,4 @@ jobs: run: yarn install - name: Build and publish to pkg.pr.new - run: yarn dlx pkg-pr-new publish --no-template --compact packages/client-react-streaming packages/experimental-nextjs-app-support + run: yarn dlx pkg-pr-new publish --no-template packages/client-react-streaming packages/experimental-nextjs-app-support From 0885c3d2f2873698205ad09c42408453067a517b Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 18 Oct 2024 11:18:19 +0200 Subject: [PATCH 3/5] prebuild libs --- .github/workflows/pkg-pr-new-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pkg-pr-new-publish.yml b/.github/workflows/pkg-pr-new-publish.yml index ea4b4fc4..856b6486 100644 --- a/.github/workflows/pkg-pr-new-publish.yml +++ b/.github/workflows/pkg-pr-new-publish.yml @@ -25,5 +25,8 @@ jobs: - name: Install dependencies run: yarn install + - name: Prebuild libs + run: yarn build:libs + - name: Build and publish to pkg.pr.new run: yarn dlx pkg-pr-new publish --no-template packages/client-react-streaming packages/experimental-nextjs-app-support From 344be66dd7d8d3c3e929c70db09212c741c7bc41 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 18 Oct 2024 11:21:52 +0200 Subject: [PATCH 4/5] also update relative-ci/agent-upload-artifact-action --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 66eea798..0bbcc6b1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -123,7 +123,7 @@ jobs: # Upload webpack-stats.json to use on relative-ci.yaml workflow - name: Upload webpack stats artifact if: matrix.version == 'latest' - uses: relative-ci/agent-upload-artifact-action@v1 + uses: relative-ci/agent-upload-artifact-action@v2 with: webpackStatsFile: ./integration-test/nextjs/webpack-stats.json From 050c3406f37a91ea319134dbd94ef4460cd067f3 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 18 Oct 2024 11:26:18 +0200 Subject: [PATCH 5/5] update lockfile --- integration-test/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-test/yarn.lock b/integration-test/yarn.lock index 65b470f5..e5b0d3bc 100644 --- a/integration-test/yarn.lock +++ b/integration-test/yarn.lock @@ -32,7 +32,7 @@ __metadata: linkType: hard "@apollo/client-react-streaming@exec:./shared/build-client-react-streaming.cjs::locator=%40integration-test%2Froot%40workspace%3A.": - version: 0.11.2 + version: 0.11.3 resolution: "@apollo/client-react-streaming@exec:./shared/build-client-react-streaming.cjs#./shared/build-client-react-streaming.cjs::hash=48b117&locator=%40integration-test%2Froot%40workspace%3A." dependencies: ts-invariant: "npm:^0.10.3" @@ -81,10 +81,10 @@ __metadata: linkType: hard "@apollo/experimental-nextjs-app-support@exec:./shared/build-experimental-nextjs-app-support.cjs::locator=%40integration-test%2Froot%40workspace%3A.": - version: 0.11.2 + version: 0.11.3 resolution: "@apollo/experimental-nextjs-app-support@exec:./shared/build-experimental-nextjs-app-support.cjs#./shared/build-experimental-nextjs-app-support.cjs::hash=fd83cc&locator=%40integration-test%2Froot%40workspace%3A." dependencies: - "@apollo/client-react-streaming": "npm:0.11.2" + "@apollo/client-react-streaming": "npm:0.11.3" peerDependencies: "@apollo/client": ^3.10.4 next: ^13.4.1 || ^14.0.0 || 15.0.0-rc.0