Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Don't build/test for versioning

Chirag Jain15906cdee099
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5d799bfd1..1f927a2ab 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,7 +5,8 @@
#
# On every push to main, changesets/action does one of:
# - pending `.changeset/*.md` → open/update the Version Packages PR
-# - none pending → `pnpm release` (build + `changeset publish`)
+# (install only; that PR is gated by CI.yml)
+# - none pending → build, test, then `pnpm release`
# Merge the Version Packages PR to publish. There is no separate publish Action
# and no `v*` tag trigger.
#
@@ -32,8 +33,7 @@ jobs:
release:
name: Version or publish
runs-on: ubuntu-latest
- # Same ceiling as generate-sdk.yaml: a Version Packages run that also
- # rebakes the SDK (Docker Fern) is the slow path. Publish is just CI + npm.
+ # Fern rebake when the sdk version moves, or build+test on publish.
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
@@ -54,11 +54,27 @@ jobs:
- run: pnpm install --frozen-lockfile
- - run: pnpm build
- - run: pnpm test
+ # Same rule changesets/action uses: any `.changeset/*.md` except README.
+ - id: pending
+ name: Detect pending changesets
+ run: |
+ pending=false
+ shopt -s nullglob
+ for file in .changeset/*.md; do
+ [ "$(basename "$file")" = README.md ] && continue
+ pending=true
+ break
+ done
+ echo "pending=$pending" >> "$GITHUB_OUTPUT"
+
+ - if: steps.pending.outputs.pending != 'true'
+ run: pnpm build
+ - if: steps.pending.outputs.pending != 'true'
+ run: pnpm test
# Root build copies FE into packages/server/dist/_frontend; refuse an API-only tarball.
- - name: Verify packaged UI is present
+ - if: steps.pending.outputs.pending != 'true'
+ name: Verify packaged UI is present
run: |
test -f packages/server/dist/cli.js
test -f packages/server/dist/_frontend/index.html
diff --git a/RELEASING.md b/RELEASING.md
index 3a7af99d7..1d617ebe1 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -38,7 +38,7 @@ There is no `v*` git-tag publish. One workflow both versions and publishes:
Name only the packages that should bump. A dep can ship without its dependent (the dependent's `workspace:*` stays untouched until that package is itself changeset + published). SDK regen on a PR already adds `@truefoundry/trueforge-sdk` via `pnpm changeset:sdk-regen`.
-2. **Merge to `main`.** `.github/workflows/release.yml` runs. If `.changeset/*.md` files are pending, `changesets/action` opens (or updates) a **Version Packages** PR. That PR is `pnpm run version`: `changeset version`, then `pnpm sdk:generate` only if `@truefoundry/trueforge-sdk`'s version actually moved (Fern rebakes version literals). Review the version bumps and CHANGELOGs, then merge.
+2. **Merge to `main`.** `.github/workflows/release.yml` runs. If `.changeset/*.md` files are pending, the job skips build/test (the Version Packages PR is gated by CI.yml) and `changesets/action` opens (or updates) a **Version Packages** PR. That PR is `pnpm run version`: `changeset version`, then `pnpm sdk:generate` only if `@truefoundry/trueforge-sdk`'s version actually moved (Fern rebakes version literals). Review the version bumps and CHANGELOGs, then merge.
3. **Merging Version Packages publishes.** The same workflow sees no pending changesets and runs `pnpm release` (`pnpm build && changeset publish`). Auth is trusted publishing (OIDC — no `NPM_TOKEN`). pnpm 11 implements the OIDC token exchange natively. Watch the repo Actions tab.