Skip to content

Create a GitHub action to run yarn build on all PRs and pushes to main #2

Create a GitHub action to run yarn build on all PRs and pushes to main

Create a GitHub action to run yarn build on all PRs and pushes to main #2

Workflow file for this run

name: Yarn Build
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: yarn install
- name: Run yarn build
run: yarn build