1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

Refactor bundlewatch workflow to use Turbo (#2119)

This commit is contained in:
Paweł Kuna
2025-02-03 02:54:15 +01:00
committed by GitHub
parent 09a7e10ef1
commit a370919ebe
5 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
---
---
Refactor bundlewatch workflow to use Turbo

View File

@@ -19,6 +19,14 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Set up Node.js
uses: actions/setup-node@v4
with:
@@ -36,9 +44,6 @@ jobs:
- name: Install pnpm dependencies
run: pnpm install --no-frozen-lockfile
- name: Run build
run: pnpm run build
- name: Run bundlewatch
run: pnpm run bundlewatch
env:

View File

@@ -1,8 +1,7 @@
name: Test build
on:
pull_request:
types: [ opened, reopened ]
pull_request: null
env:
NODE: 20
@@ -17,6 +16,14 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Set up Node.js
uses: actions/setup-node@v4
with:

View File

@@ -6,6 +6,7 @@
"build": "turbo build",
"dev": "turbo dev",
"clean": "turbo clean",
"bundlewatch": "turbo bundlewatch",
"version": "changeset version",
"publish": "changeset publish",
"reformat-mdx": "node build/reformat-mdx.mjs"

View File

@@ -18,6 +18,12 @@
"^clean"
],
"cache": false
},
"bundlewatch": {
"dependsOn": [
"^bundlewatch",
"^build"
]
}
}
}