Skip to content

Commit cae54af

Browse files
committed
fix(release): configure CI tag identity
1 parent 9952ada commit cae54af

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ jobs:
134134
fi
135135
echo "Tag ${TAG} already points to ${CURRENT_SHA}; skipping tag push"
136136
else
137+
git config user.name "github-actions[bot]"
138+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
137139
git tag -a "${TAG}" -m "${TAG}"
138140
git push origin "${TAG}"
139141
fi

.grace/verification/main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<V-M-MODEL-ROLES><TestFiles><File>src/lib/model-roles.test.ts</File></TestFiles><Checks><Command>bun test src/lib/model-roles.test.ts</Command><Command>bun x tsc --noEmit</Command></Checks></V-M-MODEL-ROLES>
3434
<V-M-CONFIG-LAYERS><TestFiles><File>src/lib/config-layers.test.ts</File></TestFiles><Checks><Command>bun test src/lib/config-layers.test.ts</Command><Command>bun run typecheck</Command></Checks><Expected>Global/project/effective runtime and TUI sources honor env precedence, json/jsonc selection, and project-local write boundaries.</Expected></V-M-CONFIG-LAYERS>
3535
<V-M-CLI-CONFIG><TestFiles><File>src/lib/opencode.test.ts</File><File>src/lib/managed-agents.test.ts</File><File>src/commands/sync.test.ts</File></TestFiles><Checks><Command>bun test src/lib/opencode.test.ts src/commands/sync.test.ts</Command><Command>bun run lint</Command><Command>bun run fmt:check</Command></Checks><Expected>Dedicated tui.json(c) mutation writes the pinned base package, migrates legacy subpath specs, preserves comments, unrelated entries, and tuple options; host compatibility, install/sync idempotence, parse state, and registration state are deterministic.</Expected></V-M-CLI-CONFIG>
36-
<V-M-RELEASE-AUTOMATION><TestFiles><File>bunfig.toml</File><File>scripts/tui-local.test.ts</File><File>scripts/release-bump.test.ts</File><File>scripts/release-check.test.ts</File><File>scripts/release-summary.test.ts</File></TestFiles><Checks><Command>bun test scripts/tui-local.test.ts scripts/release-bump.test.ts scripts/release-check.test.ts scripts/release-summary.test.ts</Command><Command>bun test src/tui/context/view.test.ts</Command><Command>bun run scripts/check-exports.ts</Command><Command>bun run release:check</Command><Command>bun run typecheck</Command><Command>bun run fmt:check</Command><Command>bun run pack:check</Command></Checks><Expected>The Bun test runner preloads @opentui/solid/preload before test module discovery; local release preparation pushes only the branch and dispatches exact version/SHA inputs; publish.yml is explicit-dispatch-only and orders tests before npm publication and npm publication before remote tag creation.</Expected></V-M-RELEASE-AUTOMATION>
36+
<V-M-RELEASE-AUTOMATION><TestFiles><File>bunfig.toml</File><File>scripts/tui-local.test.ts</File><File>scripts/release-bump.test.ts</File><File>scripts/release-check.test.ts</File><File>scripts/release-summary.test.ts</File></TestFiles><Checks><Command>bun test scripts/tui-local.test.ts scripts/release-bump.test.ts scripts/release-check.test.ts scripts/release-summary.test.ts</Command><Command>bun test src/tui/context/view.test.ts</Command><Command>bun run scripts/check-exports.ts</Command><Command>bun run release:check</Command><Command>bun run typecheck</Command><Command>bun run fmt:check</Command><Command>bun run pack:check</Command></Checks><Expected>The Bun test runner preloads @opentui/solid/preload before test module discovery; local release preparation pushes only the branch and dispatches exact version/SHA inputs; publish.yml is explicit-dispatch-only, orders tests before npm publication and npm publication before remote tag creation, and configures a repository-local GitHub Actions bot identity before creating an annotated tag.</Expected></V-M-RELEASE-AUTOMATION>
3737
<V-M-CLI-MANAGED-AGENTS><TestFiles><File>src/lib/managed-agents.test.ts</File></TestFiles><Checks><Command>bun test src/lib/managed-agents.test.ts</Command><Command>bun x tsc --noEmit</Command></Checks></V-M-CLI-MANAGED-AGENTS>
3838
<V-M-CLI-MANAGED-SKILLS><TestFiles><File>src/lib/opencode.test.ts</File><File>src/lib/managed-skills.test.ts</File></TestFiles><Checks><Command>bun test src/lib/opencode.test.ts</Command><Command>bun test src/lib/managed-skills.test.ts</Command><Command>bun x tsc --noEmit</Command><Command>bun run lint</Command><Command>bun run fmt:check</Command></Checks></V-M-CLI-MANAGED-SKILLS>
3939
<V-M-CLI-AGENT-MODELS><TestFiles><File>src/lib/agent-models.test.ts</File></TestFiles><Checks><Command>bun x tsc --noEmit</Command><Command>bun run lint</Command><Command>bun run fmt:check</Command><Command>bun run build</Command></Checks></V-M-CLI-AGENT-MODELS>

scripts/release-bump.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// END_MODULE_MAP
1616
//
1717
// START_CHANGE_SUMMARY
18+
// LAST_CHANGE: [DIRECT-FIX - Required a repository-local GitHub Actions bot identity before annotated tag creation.]
1819
// LAST_CHANGE: [DIRECT-FIX - Added regression coverage preventing pre-verification tag pushes and tag-triggered publishing.]
1920
// END_CHANGE_SUMMARY
2021

@@ -96,9 +97,13 @@ describe("publish workflow ordering", () => {
9697
const testStep = workflow.indexOf("- name: Test");
9798
const publishStep = workflow.indexOf("- name: Publish to npm");
9899
const tagStep = workflow.indexOf("- name: Create and push release tag");
100+
const tagIdentity = workflow.indexOf('git config user.name "github-actions[bot]"');
101+
const annotatedTag = workflow.indexOf('git tag -a "${TAG}" -m "${TAG}"');
99102

100103
expect(testStep).toBeGreaterThan(-1);
101104
expect(publishStep).toBeGreaterThan(testStep);
102105
expect(tagStep).toBeGreaterThan(publishStep);
106+
expect(tagIdentity).toBeGreaterThan(tagStep);
107+
expect(annotatedTag).toBeGreaterThan(tagIdentity);
103108
});
104109
});

0 commit comments

Comments
 (0)