perf: optimize client builds [WIP] #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Any Commit | |
on: | |
push: | |
branches: [canary] | |
pull_request: | |
branches: [canary] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, 'docs:') }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "22" | |
- name: Setup Bun.js | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.1.30 | |
- name: Install dependencies | |
run: bun install | |
- name: Install Brisa globally | |
run: bun i -g brisa | |
- name: Build project | |
run: bun run build:all | |
- name: Publish commits | |
run: bunx pkg-pr-new publish './packages/*' |