Skip to content

Dev

Dev #46

Workflow file for this run

name: Build
on:
pull_request:
branches: [ "master" ]
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Build project
run: yarn build