1- name : Templates
1+ name : Sync Templates
22
33on :
44 push :
55 branches :
66 - main
77 paths :
88 - ' .github/actions/**'
9- - ' .github/workflows/push -templates.yml'
10- - ' tooling/scripts/push-templates .sh'
9+ - ' .github/workflows/sync -templates.yml'
10+ - ' tooling/scripts/push-template .sh'
1111 - ' templates/**'
1212
1313jobs :
@@ -25,34 +25,32 @@ jobs:
2525 working-directory : templates/${{ matrix.template }}
2626
2727 steps :
28- - uses : actions/checkout@v4
28+ - name : Checkout
29+ uses : actions/checkout@v5
2930
30- - name : π¦ Install pnpm
31- 31+ - uses : oven-sh/setup-bun@v2
32+ name : Install bun
3233 with :
33- version : 8.6.1
34- run_install : false
34+ bun-version : latest
3535
36- - name : β»οΈ Setup Node.js
36+ - name : Use Node.js
3737 uses : actions/setup-node@v4
3838 with :
3939 node-version : 22
40- cache : ' pnpm'
41- cache-dependency-path : ' **/pnpm-lock.yaml'
4240
43- - name : π Setup pnpm cache
44- uses : actions/ cache@v4
41+ - uses : actions/ cache@v4
42+ name : β»οΈ Setup bun cache
4543 with :
46- path : $(pnpm store path)
47- key : ${{ runner.os }}-pnpm -${{ hashFiles('**/pnpm-lock.yaml ') }}
44+ path : ~/.bun/install/cache
45+ key : ${{ runner.os }}-bun -${{ hashFiles('**/bun.lock ') }}
4846 restore-keys : |
49- ${{ runner.os }}-pnpm -
47+ ${{ runner.os }}-bun -
5048
51- - name : π₯ Install dependencies
52- run : pnpm install --no -frozen-lockfile
49+ - name : π₯ Install
50+ run : bun install --frozen-lockfile
5351
5452 - name : π Build
55- run : pnpm build
53+ run : bun run build
5654
5755 sync :
5856 needs : build
7169 - name : π Sync Templates
7270 env :
7371 API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
74- run : ./tooling/scripts/push-templates .sh "templates/${{ matrix.template }}"
72+ run : ./tooling/scripts/push-template .sh "templates/${{ matrix.template }}"
7573 shell : bash
0 commit comments