From fb30ef5c50334b97a5fdab86b642ef5a3f7f841e Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 7 Jun 2026 14:34:16 -0700 Subject: [PATCH] Fix code-size CI: use deploy script that exists on both branches The compressed-size-action checks out master and runs the build script. Master doesn't have a root "build" script, so revert to using "deploy" which exists on both branches. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/code-size.yml | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-size.yml b/.github/workflows/code-size.yml index 8cc1d686..e86aac99 100644 --- a/.github/workflows/code-size.yml +++ b/.github/workflows/code-size.yml @@ -22,5 +22,5 @@ jobs: - uses: preactjs/compressed-size-action@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - build-script: "build" + build-script: "deploy" pattern: "./packages/webamp/built/*bundle.min.js" diff --git a/package.json b/package.json index ee70776f..31b4dd34 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ "test:unit": "jest", "lint": "npx turbo lint", "type-check": "pnpm --filter webamp type-check && pnpm --filter ani-cursor type-check && pnpm --filter skin-database type-check && pnpm --filter webamp-docs type-check && pnpm --filter winamp-eqf type-check", - "build": "npx turbo build", - "deploy": "npx turbo webamp-demo#build webamp-modern#build --concurrency 1 && mv packages/webamp-modern/build packages/webamp-demo/dist/modern", + "deploy": "npx turbo build webamp-modern#build --concurrency 1 && mv packages/webamp-modern/build packages/webamp-demo/dist/modern", "format": "prettier --write '**/*.{js,ts,tsx}'" }, "devDependencies": {