Skip to content

improve

improve #453

name: Publish Any Commit
on: [push]
jobs:
check-changes:
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes.outputs.src }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check if there are changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'packages/cli/src/**'
- 'packages/cli/package.json'
- 'bun.lockb'
build:
needs: check-changes
if: needs.check-changes.outputs.src == 'true'
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📦 Install
run: bun install
- name: 🚀 Prepare
run: bun run dev:prepare
- name: 🛠️ Build
run: bun run build
- name: 🚀 Continuous Release
run: bunx pkg-pr-new publish './packages/cli'