Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: ci

on:
push:
Expand All @@ -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
12 changes: 6 additions & 6 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
publish:
name: Publish
name: publish
if: >
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tegami PR Comment
name: release plan comment

on:
workflow_run:
workflows: ["Tegami PR"]
workflows: ["release plan"]
types: [completed]

permissions:
Expand All @@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tegami PR
name: release plan

on:
pull_request:
Expand All @@ -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
2 changes: 1 addition & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "samva",
"name": "@samva/workspace",
"version": "0.0.0",
"private": true,
"description": "Open-source integration packages and examples for Samva.",
Expand Down
2 changes: 1 addition & 1 deletion scripts/tegami.mts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const releaseChecks = (): TegamiPlugin => ({
});

const paper = tegami({
ignore: ["samva", /^@samva-examples\//],
ignore: ["@samva/workspace", /^@samva-examples\//],
npm: {
client: "bun",
updateLockFile: true,
Expand Down
Loading