From 357da99e55bfe031ab3594935eb692194643b524 Mon Sep 17 00:00:00 2001 From: coddingyun <81891345+coddingyun@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:27:50 +0900 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c1ba3fc..0715920c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,12 +23,25 @@ jobs: # run: | # echo "VITE_REACT_APP_AWS_SERVER=${{ secrets.VITE_REACT_APP_AWS_SERVER }}" >> $GITHUB_ENV - - name: npm install, build - run: | - npm i - npm run build + # - name: npm install, build + # run: | + # npm i + # npm run build + # env: + # NODE_OPTIONS: --openssl-legacy-provider + + - name: Install Node modules + if: steps.node-cache.outputs.cache-hit != 'true' + run: npm ci + # Currently necessary for Webpack + env: + NODE_OPTIONS: --openssl-legacy-provider + + - name: Build reader + run: npm run build + # Currently necessary for Webpack env: - NODE_OPTIONS: --openssl-legacy-provider + NODE_OPTIONS: --openssl-legacy-provider - name: Deploy uses: reggionick/s3-deploy@v3