Limit what GitHub actions need to run for specific directories

This commit is contained in:
Gabe Kangas
2022-06-29 14:34:37 -07:00
parent e7d078fbdb
commit 43aba0a67c
5 changed files with 27 additions and 17 deletions

View File

@@ -1,12 +1,16 @@
name: Build web app
on: [push, pull_request]
on:
push:
paths:
- web/**
jobs:
run:
name: npm run build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: cd web && npm install && npm run build
- name: Install dependencies
run: cd web && npm install && npm run build