-
-
Notifications
You must be signed in to change notification settings - Fork 14
33 lines (29 loc) · 762 Bytes
/
build.yml
File metadata and controls
33 lines (29 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build
env:
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build affected projects
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'yarn'
- uses: nrwl/nx-set-shas@v3
- name: Setup global dependencies
run: npm i -g yarn
- name: yarn install
run: yarn
- name: Build.all affected
run: yarn nx affected --target=build --exclude nativescript-demo-ng