Skip to content

Commit 5e1b3e2

Browse files
committed
Update GitHub workflows to streamline build and test commands
1 parent 3223950 commit 5e1b3e2

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

.github/workflows/page.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
turbo-
3737
3838
- name: Build
39-
run: pnpm build
39+
run: pnpm build:packages
4040

4141
- name: Build site
42-
run: pnpm -dir examples/sandbox build
42+
run: pnpm build:sandbox
4343

4444
- name: Upload Pages artifact
4545
uses: actions/upload-pages-artifact@v3

.github/workflows/tests.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@ jobs:
3939
run: pnpm exec playwright install --with-deps chromium
4040

4141
- name: Run Build and Tests
42-
run: pnpm run build-test:packages
43-
44-
- name: Lint
45-
run: pnpm test:lint
46-
47-
- name: Run Playwright tests
48-
run: pnpm test:e2e
49-
env:
50-
CI: true
42+
run: pnpm run build-test
5143

5244
- uses: actions/upload-artifact@v4
5345
if: always()

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"sandbox:ext": "pnpm -dir examples/sandbox run dev:ext",
1414
"----------------------BUILD----------------------": "",
1515
"build:packages": "node --experimental-transform-types ./build.ts",
16+
"build:sandbox": "pnpm -dir examples/sandbox run build",
1617
"build:ext": "pnpm -dir extension run build",
1718
"build:types": "tsc -b packages/*",
1819
"build": "pnpm build:packages && pnpm build:ext",
@@ -26,7 +27,7 @@
2627
"build-test": "pnpm run build && pnpm run test",
2728
"changeset": "changeset",
2829
"version": "pnpm changeset version && pnpm i --no-frozen-lockfile && git add .",
29-
"publish": "pnpm build && pnpm changeset publish"
30+
"publish": "pnpm build:packages && pnpm changeset publish"
3031
},
3132
"devDependencies": {
3233
"@changesets/cli": "^2.27.10",

0 commit comments

Comments
 (0)