From d0e1c6d5f21daa7a233a11cd26ae84d7c369a1ac Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:07:24 +0000 Subject: [PATCH 1/2] fix: resolve 'tsup command not found' in GitHub Actions - Updated `publish.yml` and `ci.yml` to use `working-directory` for subpackage steps. - Switched to `bun x tsup` for builds to ensure binaries are found regardless of environment PATH. - Improved dependency installation flow for monorepo-style subpackages. - Added explicit build-step logging for better pipeline debugging. Co-authored-by: codedbytahir <200578194+codedbytahir@users.noreply.github.com> --- .github/workflows/ci.yml | 13 ++++--------- .github/workflows/publish.yml | 10 ++++++---- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0afb7e7..c2d481d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,22 +25,17 @@ jobs: restore-keys: | ${{ runner.os }}-bun- - - name: Install Dependencies + - name: Install Root Dependencies run: bun install - - name: Lint - run: bun run lint - continue-on-error: true - - name: Build Framework + working-directory: packages/motionforge run: | - cd packages/motionforge bun install - bun run build + bun x tsup - name: Build CLI + working-directory: packages/create-motionforge run: | - cd packages/create-motionforge bun install - # Verify binary exists ls bin/index.js diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 03f602e..e424e9f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,17 +40,19 @@ jobs: fi - name: Publish MotionForge + working-directory: packages/motionforge run: | echo "Processing motionforge..." - cd packages/motionforge bun install - bun run build + + # Using bun x ensures tsup is found/run correctly + echo "Building motionforge..." + bun x tsup PACKAGE_NAME=$(node -p "require('./package.json').name") CURRENT_VERSION=$(node -p "require('./package.json').version") echo "Checking if $PACKAGE_NAME@$CURRENT_VERSION is already published..." - # Use || true to prevent exit on error if package doesn't exist NPM_VERSION=$(npm view $PACKAGE_NAME version 2>/dev/null || echo "") if [ -z "$NPM_VERSION" ]; then @@ -69,9 +71,9 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish Create-MotionForge + working-directory: packages/create-motionforge run: | echo "Processing create-motionforge..." - cd packages/create-motionforge bun install PACKAGE_NAME=$(node -p "require('./package.json').name") From 63d756da098ad6b4b3aa026cf89033ecb4631dd8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:42:14 +0000 Subject: [PATCH 2/2] fix: configure package.json repository fields for NPM provenance - Added `repository` field with `url` and `directory` to `packages/create-motionforge/package.json`. - Added `directory` field to the `repository` in `packages/motionforge/package.json`. - Added `repository` field to the root `package.json`. - Standardized the repository URL format to `git+https://github.com/...` for compatibility with sigstore/provenance verification. Co-authored-by: codedbytahir <200578194+codedbytahir@users.noreply.github.com> --- package.json | 4 ++++ packages/create-motionforge/package.json | 5 +++++ packages/motionforge/package.json | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2cb7ecf..15eb5d9 100755 --- a/package.json +++ b/package.json @@ -2,6 +2,10 @@ "name": "nextjs_tailwind_shadcn_ts", "version": "0.2.0", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/codedbytahir/motionforge.git" + }, "scripts": { "dev": "next dev -p 3000 2>&1 | tee dev.log", "build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/", diff --git a/packages/create-motionforge/package.json b/packages/create-motionforge/package.json index 19c7ab3..927a03c 100644 --- a/packages/create-motionforge/package.json +++ b/packages/create-motionforge/package.json @@ -18,6 +18,11 @@ ], "author": "MotionForge Team", "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/codedbytahir/motionforge.git", + "directory": "packages/create-motionforge" + }, "dependencies": { "chalk": "^5.6.2", "commander": "^14.0.3", diff --git a/packages/motionforge/package.json b/packages/motionforge/package.json index f96382d..09013e4 100644 --- a/packages/motionforge/package.json +++ b/packages/motionforge/package.json @@ -62,7 +62,8 @@ ], "repository": { "type": "git", - "url": "https://github.com/codedbytahir/motionforge.git" + "url": "git+https://github.com/codedbytahir/motionforge.git", + "directory": "packages/motionforge" }, "bugs": { "url": "https://github.com/codedbytahir/motionforge/issues"