add descriptions SH-216 #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update UI cache | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'statshouse-ui/**' | |
- '.github/workflows/ci-ui-cache.yml' | |
jobs: | |
ci-ui: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Cache NPM dependencies | |
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: NODE_ENV=production npm ci | |
working-directory: statshouse-ui |