Skip to content

Build on push to any branch except main #179

Build on push to any branch except main

Build on push to any branch except main #179

name: Push to any
run-name: Build on push to any branch except main
on:
push:
branches-ignore:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Node.js v20.10
uses: actions/setup-node@v2
with:
node-version: '20.10'
- name: Install TurboRepo CLI
run: yarn global add turbo
- name: Lint, Build, and Test
run: |
yarn
# yarn workspaces foreach --verbose --since --no-private info
# yarn workspaces info
# yarn workspaces foreach install
# turbo run lint --filter="...[HEAD^1]"
# turbo run build --filter="...[HEAD^1]"
turbo run lint
# turbo run build
# turbo run test --filter=...[origin/main]