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/bun.lock b/bun.lock index 9b52d10..2229929 100644 --- a/bun.lock +++ b/bun.lock @@ -3,7 +3,7 @@ "configVersion": 1, "workspaces": { "": { - "name": "samva", + "name": "@samva/workspace", "devDependencies": { "@tsconfig/bun": "^1.0.10", "@types/bun": "^1.4.0", 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 diff --git a/package.json b/package.json index 69d1bdc..df8fec4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "samva", + "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 c2870dd..55724e4 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/workspace", /^@samva-examples\//], npm: { client: "bun", updateLockFile: true,