diff --git a/.github/workflows/aws-s3-deployment.yml b/.github/workflows/aws-s3-deployment.yml index e2bc190..0adf04a 100644 --- a/.github/workflows/aws-s3-deployment.yml +++ b/.github/workflows/aws-s3-deployment.yml @@ -24,6 +24,14 @@ on: in the `conditional-outputs` action to set the build suffix and other environment-specific settings. required: true + force-ignore-dependency-warnings: + type: boolean + description: | + Use `--force` when installing dependencies to ignore peer dependency + warnings. This is useful when using packages that have not yet updated + their peer dependencies to include support for newer libraries. + required: false + default: false node-version: type: string description: | @@ -125,7 +133,7 @@ jobs: NEXT_PUBLIC_REPORTING_API_KEY: ${{ secrets.reporting-api-key }} WEBSITE_HOST: ${{ needs.determine-environment.outputs.website }} run: | - npm ci + npm ci ${{ inputs.force-ignore-dependency-warnings == true && '--force' || '' }} npm run build:${{ needs.determine-environment.outputs.build-suffix }} if [ -n "${{ secrets.reporting-api-key }}" ]; then diff --git a/.github/workflows/common-ci-js.yml b/.github/workflows/common-ci-js.yml index 72442d9..51fc272 100644 --- a/.github/workflows/common-ci-js.yml +++ b/.github/workflows/common-ci-js.yml @@ -29,6 +29,14 @@ on: description: Disable the unit testing job required: false default: false + force-ignore-dependency-warnings: + type: boolean + description: | + Use `--force` when installing dependencies to ignore peer dependency + warnings. This is useful when using packages that have not yet updated + their peer dependencies to include support for newer libraries. + required: false + default: false node-version: type: string description: | @@ -71,7 +79,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.node-auth-token }} run: | - npm ci + npm ci ${{ inputs.force-ignore-dependency-warnings == true && '--force' || '' }} npm run ${{ inputs.build-script }} npm run lint @@ -95,7 +103,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.node-auth-token }} run: | - npm ci + npm ci ${{ inputs.force-ignore-dependency-warnings == true && '--force' || '' }} npm run ${{ inputs.build-script }} npm run format git diff --exit-code @@ -120,6 +128,6 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.node-auth-token }} run: | - npm ci + npm ci ${{ inputs.force-ignore-dependency-warnings == true && '--force' || '' }} npm run ${{ inputs.build-script }} npm run test