Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created September 16, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/95121d5ed8188a9f311dab7a72fb956e to your computer and use it in GitHub Desktop.
Save lydemann/95121d5ed8188a9f311dab7a72fb956e to your computer and use it in GitHub Desktop.
# ci.yml
name: CI
env:
NODE_OPTIONS: --max-old-space-size=6144
on:
push:
branches:
- main
pull_request: {}
jobs:
builds:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
with:
# Required by nrwl/nx-set-shas
fetch-depth: 0
- name:
'Derive appropriate SHAs for base and head for `nx affected` commands'
uses: nrwl/nx-set-shas@v2
- name: Set up dependencies
uses: ./.github/actions/setup-dependencies
- name: 'Build application if affected by changes in feature branch'
run: yarn affected:build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment