Skip to content

Commit 19d0f71

Browse files
committed
ci
1 parent 75d5944 commit 19d0f71

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

β€Ž.github/workflows/sync-templates.ymlβ€Ž

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Templates
1+
name: Sync Templates
22

33
on:
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

1313
jobs:
@@ -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-
uses: pnpm/[email protected]
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
@@ -71,5 +69,5 @@ jobs:
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

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"release": "yarn build && yarn changeset publish",
6161
"shadcn:build": "yarn workspace www shadcn:build",
6262
"templates:check": "cd templates/plate-template && bun lint && bun typecheck && cd ../plate-playground-template && bun lint && bun typecheck",
63-
"templates:push": "./tooling/scripts/push-templates.sh \"templates/*\"",
63+
"templates:push": "./tooling/scripts/push-template.sh \"templates/*\"",
6464
"templates:basic": "./tooling/scripts/update-template.sh basic",
6565
"templates:ai": "./tooling/scripts/update-template.sh ai",
6666
"templates:update": "yarn templates:update:basic && yarn templates:update:ai",
File renamed without changes.

0 commit comments

Comments
Β (0)