Skip to content

CI: add build workflow + run docker workflow only if secrets are set #3

CI: add build workflow + run docker workflow only if secrets are set

CI: add build workflow + run docker workflow only if secrets are set #3

Workflow file for this run

name: Check build
on: [push, pull_request]
jobs:
build-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-cache-
- name: Install dependencies
run: npm install
- name: Run build check
run: |
npm run build
npm run build:pwa