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
4 changes: 3 additions & 1 deletion docs/DEVELOPMENT-PIPELINE.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ schema/docs links, then copies the initializer's application files, generated
agent guide, skills and local MCP registration from the installed published core
package. The committed generated-file manifest also removes app files deleted
from the initializer. Template-owned packaging, CI and onboarding files remain
untouched. It then runs validation/tests/audit/benchmark,
untouched. It then runs validation/tests/benchmark (not `audit`: the bare
starter ships with zero example routes by design, and `urlcode audit` refuses
"ready" for any project with no active routes regardless of `--expect-routes`),
and opens a resumable PR. The coordinator waits for checks and merges it, checking
for a newer template pin immediately before merge. `--skip-template` explicitly
leaves this follow-up to the maintainer. To run only that follow-up:
Expand Down
7 changes: 5 additions & 2 deletions scripts/release-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,16 @@ export async function updateTemplate(version: string, options: { execute?: boole
assertTemplateLock(version, JSON.parse(await readFile(join(directory, 'package-lock.json'), 'utf8')));
run('npm', ['ci', '--ignore-scripts', '--registry=https://registry.npmjs.org']);
await copyPublishedTemplateGuide(directory, version);
for (const script of ['validate', 'test', 'audit']) run('npm', ['run', script]);
// Not `audit`: the bare starter (#503) ships with zero example routes by design, and
// `urlcode audit` refuses "ready" for any project with no active routes regardless of
// --expect-routes, so it can never pass here. `npm run audit` still works standalone.
for (const script of ['validate', 'test']) run('npm', ['run', script]);
run('npm', ['run', 'benchmark', '--', '--requests', '50', '--concurrency', '2']);
run('git', ['add', '--all']);
if (run('git', ['status', '--porcelain']).trim()) run('git', [...releaseIdentity, 'commit', '-m', `Pin starter runtime to ${version}`]);
run('git', ['push', 'origin', branch]); // Never force an existing branch.
const body = join(directory, '.git', 'release-pr.md');
await writeFile(body, `Pin the standalone starter to @jimhoyd/urlcode@${version}, refresh its lockfile and matching schema/documentation references, and synchronize the generated authoring guide, skills and MCP registration.\n\nValidation: npm ci, validate, test, audit and a 50-request benchmark passed against the published package.\n`);
await writeFile(body, `Pin the standalone starter to @jimhoyd/urlcode@${version}, refresh its lockfile and matching schema/documentation references, and synchronize the generated authoring guide, skills and MCP registration.\n\nValidation: npm ci, validate, test and a 50-request benchmark passed against the published package.\n`);
const url = run('gh', ['pr', 'create', '--repo', repository, '--head', branch, '--base', 'main', '--title', `Pin starter runtime to ${version}`, '--body-file', body]).trim();
const pr = JSON.parse(gh(['pr', 'view', url, '--repo', repository, '--json', 'url,number,headRefOid'])) as { url: string; number: number; headRefOid: string };
return { url: pr.url, number: pr.number, head: pr.headRefOid };
Expand Down
Loading