Skip to content

Commit

Permalink
StatsHouse UI: update ci production
Browse files Browse the repository at this point in the history
  • Loading branch information
vauweb committed Oct 29, 2024
1 parent 0c7e731 commit 212f0c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-ui-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions .github/workflows/ci-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions statshouse-ui/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
INLINE_RUNTIME_CHUNK=false

#REACT_APP_PROXY=
#REACT_APP_PROXY_COOKIE=""
#REACT_APP_CONFIG=""

0 comments on commit 212f0c0

Please sign in to comment.