Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/aws-s3-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/common-ci-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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