-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.08 KB
/
continuous-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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'