From 212f0c07aebe2b749349547307b901424f40f01e Mon Sep 17 00:00:00 2001 From: Anton Ulyanov Date: Mon, 28 Oct 2024 15:40:05 +0300 Subject: [PATCH] StatsHouse UI: update ci production --- .github/workflows/ci-ui-cache.yml | 10 +++++----- .github/workflows/ci-ui.yml | 10 +++++----- statshouse-ui/.env | 3 +++ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-ui-cache.yml b/.github/workflows/ci-ui-cache.yml index 91903b084..f4cd463f3 100644 --- a/.github/workflows/ci-ui-cache.yml +++ b/.github/workflows/ci-ui-cache.yml @@ -11,20 +11,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x - name: Cache NPM dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache-primes with: path: statshouse-ui/node_modules key: ${{ runner.os }}-node-${{ hashFiles('statshouse-ui/package-lock.json') }} - name: Install if: steps.cache-primes.outputs.cache-hit != 'true' - run: npm ci + run: NODE_ENV=production npm ci working-directory: statshouse-ui diff --git a/.github/workflows/ci-ui.yml b/.github/workflows/ci-ui.yml index ba793fdfc..31ce33a60 100644 --- a/.github/workflows/ci-ui.yml +++ b/.github/workflows/ci-ui.yml @@ -11,22 +11,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x - name: Cache NPM dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache-primes with: path: statshouse-ui/node_modules key: ${{ runner.os }}-node-${{ hashFiles('statshouse-ui/package-lock.json') }} - name: Install if: steps.cache-primes.outputs.cache-hit != 'true' - run: npm ci + run: NODE_ENV=production npm ci working-directory: statshouse-ui - name: Build run: npm run build diff --git a/statshouse-ui/.env b/statshouse-ui/.env index 75a22591d..bb3582e43 100644 --- a/statshouse-ui/.env +++ b/statshouse-ui/.env @@ -1,2 +1,5 @@ INLINE_RUNTIME_CHUNK=false +#REACT_APP_PROXY= +#REACT_APP_PROXY_COOKIE="" +#REACT_APP_CONFIG=""