ci: Only rebuild on actual code changes
This commit is contained in:
parent
fe5a78ddc9
commit
56b00f715a
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -3,6 +3,12 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/build.yml
|
||||
- src/**
|
||||
- browser/**
|
||||
- scripts/build/**
|
||||
- package.json
|
||||
env:
|
||||
FORCE_COLOR: true
|
||||
|
||||
@ -16,9 +22,9 @@ jobs:
|
||||
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
|
||||
|
||||
- name: Use Node.js 18
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 19
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
Loading…
Reference in New Issue
Block a user