Skip to content

Migrate Nx workspace #1171

Migrate Nx workspace

Migrate Nx workspace #1171

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git - Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Node - Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: NPM - Set cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: NPM - Restore cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-npm-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-build-
- name: NPM - Install dependencies
run: npm ci --prefer-offline=true --audit=false
- name: Nx - Affected - Build
run: npm run nx -- affected --target=build --base=last-release