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 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 ) {