From 2765683826749c1713f50912785aa1264b80656c Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sat, 19 Sep 2026 16:18:19 +0530 Subject: [PATCH 1/4] fix(release): rename private root package to avoid samva dependency rewrite Tegami resolved every samva specifier to the private root package named samva, rewriting examples and publishable peers to ^0.0.0 and failing bun install. Name the private root @samva/integrations and ignore it in the release graph. --- package.json | 2 +- scripts/tegami.mts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 69d1bdc..1e7190a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "samva", + "name": "@samva/integrations", "version": "0.0.0", "private": true, "description": "Open-source integration packages and examples for Samva.", diff --git a/scripts/tegami.mts b/scripts/tegami.mts index c2870dd..a6776ed 100644 --- a/scripts/tegami.mts +++ b/scripts/tegami.mts @@ -44,7 +44,7 @@ const releaseChecks = (): TegamiPlugin => ({ }); const paper = tegami({ - ignore: ["samva", /^@samva-examples\//], + ignore: ["@samva/integrations", /^@samva-examples\//], npm: { client: "bun", updateLockFile: true, From 46618b8ce8632fe1fde66c7728d8aa20640b0560 Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sat, 19 Sep 2026 16:18:28 +0530 Subject: [PATCH 2/4] ci: lowercase workflow naming to match the platform repo Rename the tegami-pr workflows to release-plan and release-plan-comment, and lowercase every workflow, job, and step name. Rename the preview artifact to release-plan and update the docs reference. --- .github/workflows/ci.yml | 22 ++++++++-------- .github/workflows/prepare-release.yml | 12 ++++----- .github/workflows/publish.yml | 14 +++++------ ...r-comment.yml => release-plan-comment.yml} | 24 +++++++++--------- .../{tegami-pr.yml => release-plan.yml} | 25 ++++++++++--------- docs/releases.md | 4 +-- 6 files changed, 51 insertions(+), 50 deletions(-) rename .github/workflows/{tegami-pr-comment.yml => release-plan-comment.yml} (68%) rename .github/workflows/{tegami-pr.yml => release-plan.yml} (63%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2405983..4f00e4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: ci on: push: @@ -11,37 +11,37 @@ permissions: jobs: validate: - name: Validate + name: validate runs-on: ubuntu-latest timeout-minutes: 30 steps: - - name: Check out repository + - name: checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - name: Set up Bun + - name: setup bun uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.0 - - name: Set up Deno + - name: setup deno uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2.0.5 with: deno-version: 2.9.5 - - name: Install dependencies + - name: install dependencies run: bun install --frozen-lockfile - - name: Build + - name: build run: bun run build - - name: Typecheck + - name: typecheck run: bun run typecheck - - name: Test + - name: test run: bun run test - - name: Lint + - name: lint run: bun run lint - - name: Check formatting + - name: check formatting run: bun run format:check diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 219cdea..d072dab 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -14,31 +14,31 @@ concurrency: jobs: version: - name: Draft versions + name: draft versions runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - - name: Checkout + - name: checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: fetch-depth: 0 - - name: Setup Bun + - name: setup bun uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.0 - - name: Setup Node + - name: setup node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 24 - - name: Install dependencies + - name: install dependencies run: bun install --frozen-lockfile - - name: Draft version changes + - name: draft version changes run: bun run tegami version env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1bfceeb..7f61a44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ permissions: jobs: publish: - name: Publish + name: publish if: > github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && @@ -32,32 +32,32 @@ jobs: id-token: write pull-requests: write steps: - - name: Checkout + - name: checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: fetch-depth: 0 - - name: Setup Bun + - name: setup bun uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.0 - - name: Setup Node + - name: setup node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 24 registry-url: https://registry.npmjs.org - - name: Install dependencies + - name: install dependencies run: bun install --frozen-lockfile - - name: Version and publish packages + - name: version and publish if: github.event_name != 'workflow_dispatch' || inputs.dry_run != true run: bun run tegami ci env: GITHUB_TOKEN: ${{ github.token }} - - name: Validate publish lock (dry run) + - name: validate publish lock (dry run) if: github.event_name == 'workflow_dispatch' && inputs.dry_run == true run: bun run tegami publish --dry-run env: diff --git a/.github/workflows/tegami-pr-comment.yml b/.github/workflows/release-plan-comment.yml similarity index 68% rename from .github/workflows/tegami-pr-comment.yml rename to .github/workflows/release-plan-comment.yml index c3568ab..2b83898 100644 --- a/.github/workflows/tegami-pr-comment.yml +++ b/.github/workflows/release-plan-comment.yml @@ -1,8 +1,8 @@ -name: Tegami PR Comment +name: release plan comment on: workflow_run: - workflows: ["Tegami PR"] + workflows: ["release plan"] types: [completed] permissions: @@ -12,37 +12,37 @@ permissions: jobs: comment: - name: Post preview comment + name: comment release plan if: > github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' runs-on: ubuntu-latest steps: - - name: Checkout + - name: checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - name: Setup Bun + - name: setup bun uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.0 - - name: Setup Node + - name: setup node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 24 - - name: Install dependencies + - name: install dependencies run: bun install --frozen-lockfile - - name: Download preview + - name: download release plan uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: - name: tegami-pr-preview - path: ${{ runner.temp }}/tegami-pr-preview + name: release-plan + path: ${{ runner.temp }}/release-plan run-id: ${{ github.event.workflow_run.id }} github-token: ${{ github.token }} - - name: Post preview comment - run: bun run tegami pr comment "$RUNNER_TEMP/tegami-pr-preview/tegami-pr-preview.md" + - name: post release plan comment + run: bun run tegami pr comment "$RUNNER_TEMP/release-plan/release-plan.md" env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/tegami-pr.yml b/.github/workflows/release-plan.yml similarity index 63% rename from .github/workflows/tegami-pr.yml rename to .github/workflows/release-plan.yml index 09fcb46..a5f40e8 100644 --- a/.github/workflows/tegami-pr.yml +++ b/.github/workflows/release-plan.yml @@ -1,4 +1,4 @@ -name: Tegami PR +name: release plan on: pull_request: @@ -8,33 +8,34 @@ permissions: contents: read jobs: - preview: - name: Release preview + plan: + name: plan release runs-on: ubuntu-latest steps: - - name: Checkout + - name: checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: fetch-depth: 0 - - name: Setup Bun + - name: setup bun uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.0 - - name: Setup Node + - name: setup node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 24 - - name: Install dependencies + - name: install dependencies run: bun install --frozen-lockfile - - name: Release preview - run: bun run tegami pr preview --artifact tegami-pr-preview.md + - name: build release plan + run: bun run tegami pr preview --artifact release-plan.md - - name: Upload preview + - name: upload release plan uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: - name: tegami-pr-preview - path: tegami-pr-preview.md + name: release-plan + path: release-plan.md + retention-days: 3 diff --git a/docs/releases.md b/docs/releases.md index 5019c18..73abd6a 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -38,8 +38,8 @@ The public packages version independently: - `@samva/better-auth` — release group `better-auth` - `@samva/email-sdk` — release group `email-sdk` -Pull requests that add Tegami changelog files get a release preview comment -from the split `tegami-pr.yml` / `tegami-pr-comment.yml` workflows. +Pull requests that add Tegami changelog files get a release plan comment from +the split `release-plan.yml` / `release-plan-comment.yml` workflows. ## Queue a change From e00fae0beeeecfa61a2f1e07b8f7e6f2519c2e65 Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sat, 19 Sep 2026 16:23:03 +0530 Subject: [PATCH 3/4] chore(release): sync root package name in the lockfile (greptile) The root workspaces entry still carried the old package name. Update it to @samva/integrations; bun install and bun install --frozen-lockfile both report no further changes. --- bun.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bun.lock b/bun.lock index 9b52d10..0cde510 100644 --- a/bun.lock +++ b/bun.lock @@ -3,7 +3,7 @@ "configVersion": 1, "workspaces": { "": { - "name": "samva", + "name": "@samva/integrations", "devDependencies": { "@tsconfig/bun": "^1.0.10", "@types/bun": "^1.4.0", From fe7f3eea64bbc40a7f3d6f1499fdd45a9492472c Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sat, 19 Sep 2026 16:24:33 +0530 Subject: [PATCH 4/4] chore(release): name the private workspace package @samva/workspace Use @samva/workspace for the private root package, mirroring @samva/platform in the platform repo, across package.json, the Tegami ignore list, and the lockfile root entry. --- bun.lock | 2 +- package.json | 2 +- scripts/tegami.mts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index 0cde510..2229929 100644 --- a/bun.lock +++ b/bun.lock @@ -3,7 +3,7 @@ "configVersion": 1, "workspaces": { "": { - "name": "@samva/integrations", + "name": "@samva/workspace", "devDependencies": { "@tsconfig/bun": "^1.0.10", "@types/bun": "^1.4.0", diff --git a/package.json b/package.json index 1e7190a..df8fec4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@samva/integrations", + "name": "@samva/workspace", "version": "0.0.0", "private": true, "description": "Open-source integration packages and examples for Samva.", diff --git a/scripts/tegami.mts b/scripts/tegami.mts index a6776ed..55724e4 100644 --- a/scripts/tegami.mts +++ b/scripts/tegami.mts @@ -44,7 +44,7 @@ const releaseChecks = (): TegamiPlugin => ({ }); const paper = tegami({ - ignore: ["@samva/integrations", /^@samva-examples\//], + ignore: ["@samva/workspace", /^@samva-examples\//], npm: { client: "bun", updateLockFile: true,