Skip to content

Commit 8ae0905

Browse files
committed
Add sc
1 parent d55d8e1 commit 8ae0905

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
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:
@@ -54,7 +54,7 @@ jobs:
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:

.github/workflows/sc.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)