chore: re-generate yarn lockfile #118
Workflow file for this run
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: Web Dev | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- web/** | |
- .github/workflows/web-dev.yml | |
defaults: | |
run: | |
working-directory: web | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- name: Cache | |
uses: actions/cache@v1 | |
with: | |
path: web/node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Use Node 18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn install --prefer-offline | |
- name: Run Prettier | |
run: yarn prettier --check --ignore-path .gitignore 'src/**/*.{ts,js,json.html,scss}' | |
- name: Build | |
run: | | |
rm -rf dist | |
yarn ng run holostats:server:production | |
yarn ng run holostats:build:production --stats-json=false | |
node postbuild.mjs | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: f1c2ab938f91fa76af879185e872f215 | |
projectName: holostats | |
directory: dist |