From 7412b57edc31535f9715f0cdddbebdaff2b859df Mon Sep 17 00:00:00 2001 From: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:50:09 +0300 Subject: [PATCH 1/2] Reapply "Bump actions/setup-node from 4 to 5" This reverts commit 75d1453a005b9fdb3729801da34c113054bd2955. --- .github/workflows/build-plugin.yml | 2 +- .github/workflows/e2e-tests.yml | 2 +- .github/workflows/node.js.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml index 41ec9a374a..32d177fc6d 100644 --- a/.github/workflows/build-plugin.yml +++ b/.github/workflows/build-plugin.yml @@ -52,7 +52,7 @@ jobs: run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ env.NODE_VERSION }} cache: npm diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 3b2fd1dc63..ec72fdb93f 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -31,7 +31,7 @@ jobs: run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4.1.0 + uses: actions/setup-node@v5 with: node-version: ${{ env.NODE_VERSION }} cache: npm diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6f75625578..bcf441c99b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,7 +28,7 @@ jobs: run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4.1.0 + uses: actions/setup-node@v5 with: node-version: ${{ env.NODE_VERSION }} cache: npm From 1bf49e8027719f1ad2aaa2aff35c1441323ed3c1 Mon Sep 17 00:00:00 2001 From: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:52:41 +0300 Subject: [PATCH 2/2] Attempt to fix develop branch build error --- src/content-helper/common/providers/base-provider.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content-helper/common/providers/base-provider.tsx b/src/content-helper/common/providers/base-provider.tsx index f71614e404..ac61edb604 100644 --- a/src/content-helper/common/providers/base-provider.tsx +++ b/src/content-helper/common/providers/base-provider.tsx @@ -137,6 +137,7 @@ export abstract class BaseProvider { * AbortController signal. * * @since 3.15.0 + * @since 3.20.7 Using APIFetchOptions to avoid a type error when building on GitHub. * * @param {APIFetchOptions} options The options to pass to apiFetch. * @param {string?} id The (optional) ID of the request. @@ -148,7 +149,9 @@ export abstract class BaseProvider { options.signal = abortController.signal; try { - const response = await apiFetch>( options ); + const response = await apiFetch>( + options as APIFetchOptions + ); // Validate API side errors. if ( response.error ) {