Skip to content

Commit

Permalink
Use --openssl-legacy-provider in CI for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
anantakrishna committed Oct 11, 2023
1 parent 18bd130 commit c82c167
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
cache: 'npm'
cache-dependency-path: ${{ matrix.project }}/package-lock.json

# https://github.com/webpack/webpack/issues/14532#issuecomment-947012063
- if: matrix.project = 'frontend'
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV

- run: npm ci
# prettier should be called after installing dependencies so that proper version be picked
- run: npx prettier --check .
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ jobs:
npm ci --prefix functions
npm i -g firebase-tools@11.29.1 firebase-bolt
- name: Build
run: |
npm run build --prefix frontend
npm run build --prefix functions
- run: npm run build --prefix frontend
env:
# https://github.com/webpack/webpack/issues/14532#issuecomment-947012063
NODE_OPTIONS: --openssl-legacy-provider

- run: npm run build --prefix functions

- name: Deploy to ${{ inputs.environment }}
run: |
Expand Down

0 comments on commit c82c167

Please sign in to comment.