File tree Expand file tree Collapse file tree 2 files changed +44
-2
lines changed
Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Checkout
21- uses : actions/checkout@v4
21+ uses : actions/checkout@v5
2222
2323 - uses : oven-sh/setup-bun@v2
2424 with :
5454 if : contains(needs.changepacks.outputs.changepacks, 'package.json')
5555 steps :
5656 - name : Checkout
57- uses : actions/checkout@v4
57+ uses : actions/checkout@v5
5858
5959 - uses : oven-sh/setup-bun@v2
6060 with :
Original file line number Diff line number Diff line change 1+ name : Schedule Build
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * *'
6+ workflow_dispatch :
7+ permissions : write-all
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : false
12+
13+ jobs :
14+ check :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v5
19+
20+ - uses : oven-sh/setup-bun@v2
21+ with :
22+ bun-version : latest
23+ - name : index.d.ts size
24+ run : |
25+ echo "prev=$(wc -c src/index.d.ts | awk '{print $1}')" >> $GITHUB_OUTPUT
26+ id : prev-size
27+ - run : bun i
28+ - run : bun test --coverage
29+ - run : bun lint
30+ - run : bun run build
31+ - name : index.d.ts size
32+ run : |
33+ echo "new=$(wc -c src/index.d.ts | awk '{print $1}')" >> $GITHUB_OUTPUT
34+ id : new-size
35+
36+ - name : Update Package
37+ if : steps.new-size.outputs.new != steps.prev-size.outputs.prev
38+ run : |
39+ bunx @changepacks/cli -y --update patch -m "chore: update package version"
40+ git add .
41+ git commit -m "chore: update package version"
42+ git push
You can’t perform that action at this time.
0 commit comments