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
7 changes: 3 additions & 4 deletions docs/DEVELOPMENT-PIPELINE.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +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/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
untouched. It then runs validation/tests (not `audit` or `benchmark`: the bare
starter ships with zero example routes by design, and both refuse to run
against a project with no active 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
11 changes: 6 additions & 5 deletions scripts/release-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,17 @@ 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);
// 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.
// Not `audit` or `benchmark`: the bare starter (#503) ships with zero example routes by
// design. `urlcode audit` refuses "ready" for any project with no active routes regardless
// of --expect-routes, and `urlcode benchmark` refuses outright ("No GET/HEAD workload") with
// nothing to request, so neither can ever pass here. Both still work fine run standalone
// once routes are added.
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 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 and test 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