From 395e3fc59c6dcfcfb5fb22251690628f8a69456a Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 13 Feb 2023 14:45:06 +0000 Subject: [PATCH 1/4] ci: upload docs when submitting pr --- .github/workflows/pull-request.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ffbfa0931..1928dd154 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -48,3 +48,12 @@ jobs: - name: Test run: yarn test + + - name: Build Docs + run: yarn build:docs + + - name: Upload Docs + uses: actions/upload-artifact@v3 + with: + name: docs + path: docs From 446d53b3c2d4f6fb1581ad0dfe9750b7250b50bd Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 13 Feb 2023 14:51:26 +0000 Subject: [PATCH 2/4] ci: upload docs when submitting pr --- .github/workflows/pull-request-docs.yml | 21 +++++++++++++++++++++ .github/workflows/pull-request.yml | 10 +--------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/pull-request-docs.yml diff --git a/.github/workflows/pull-request-docs.yml b/.github/workflows/pull-request-docs.yml new file mode 100644 index 000000000..e72831d98 --- /dev/null +++ b/.github/workflows/pull-request-docs.yml @@ -0,0 +1,21 @@ +name: Pull Request + +on: + pull_request: + paths: [src/**/*.ts] + types: [opened, synchronize] + +jobs: + test: + name: Docs Artifact + runs-on: ubuntu-latest + if: github.actor != 'renovate[bot]' || github.actor != 'dependabot[bot]' + steps: + - name: Build Docs + run: yarn build:docs + + - name: Upload Docs + uses: actions/upload-artifact@v3 + with: + name: docs + path: docs diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1928dd154..9c73d2564 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,6 +25,7 @@ jobs: uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} + id: node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -48,12 +49,3 @@ jobs: - name: Test run: yarn test - - - name: Build Docs - run: yarn build:docs - - - name: Upload Docs - uses: actions/upload-artifact@v3 - with: - name: docs - path: docs From 0a2a95a576dabe36203b203fe86008d7d8a637c1 Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 8 Jun 2026 10:36:03 +0100 Subject: [PATCH 3/4] ci(pr): cancel concurrent doc uploads --- .github/workflows/pull-request-docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pull-request-docs.yml b/.github/workflows/pull-request-docs.yml index e72831d98..e267c3efc 100644 --- a/.github/workflows/pull-request-docs.yml +++ b/.github/workflows/pull-request-docs.yml @@ -5,6 +5,10 @@ on: paths: [src/**/*.ts] types: [opened, synchronize] +concurrency: + cancel-in-progress: true + group: pr-docs-${{ github.head_ref }} + jobs: test: name: Docs Artifact From 3b888eb4be3da2ee4d273e8bb766498d66f0982c Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 8 Jun 2026 10:38:01 +0100 Subject: [PATCH 4/4] ci(pr): correct paths for docs --- .github/workflows/pull-request-docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-docs.yml b/.github/workflows/pull-request-docs.yml index e267c3efc..2fc4ce65d 100644 --- a/.github/workflows/pull-request-docs.yml +++ b/.github/workflows/pull-request-docs.yml @@ -2,7 +2,9 @@ name: Pull Request on: pull_request: - paths: [src/**/*.ts] + paths: + - docs + - packages/*/src/**/*.ts types: [opened, synchronize] concurrency: