ci: Only rebuild on actual code changes

This commit is contained in:
Ven 2022-10-26 13:03:53 +02:00 committed by GitHub
parent fe5a78ddc9
commit 56b00f715a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,12 @@ on:
push: push:
branches: branches:
- main - main
paths:
- .github/workflows/build.yml
- src/**
- browser/**
- scripts/build/**
- package.json
env: env:
FORCE_COLOR: true FORCE_COLOR: true
@ -16,9 +22,9 @@ jobs:
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json - uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
- name: Use Node.js 18 - name: Use Node.js 18
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 19
cache: "pnpm" cache: "pnpm"
- name: Install dependencies - name: Install dependencies