From 843db0c11ba85f270656ab417702f1a553fc355b Mon Sep 17 00:00:00 2001 From: i-trytoohard Date: Sun, 17 May 2026 09:40:32 +0000 Subject: [PATCH] fix(canary): generate dummy changeset from config.json Reads linked packages from .changeset/config.json at runtime instead of hardcoding them. Avoids drift when packages are added/removed. Also replaces 1000-char printf with readable node script. --- .github/workflows/canary.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index da41671fa..d38f5e0f4 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -111,7 +111,19 @@ jobs: # create a minimal one. `changeset version --snapshot` consumes and # deletes it, so no cleanup is needed. if [ -z "$(ls .changeset/*.md 2>/dev/null | grep -vi 'README')" ]; then - printf -- '---\n"@aoagents/ao": patch\n"@aoagents/ao-cli": patch\n"@aoagents/ao-core": patch\n"@aoagents/ao-plugin-agent-aider": patch\n"@aoagents/ao-plugin-agent-claude-code": patch\n"@aoagents/ao-plugin-agent-codex": patch\n"@aoagents/ao-plugin-agent-cursor": patch\n"@aoagents/ao-plugin-agent-kimicode": patch\n"@aoagents/ao-plugin-agent-opencode": patch\n"@aoagents/ao-plugin-notifier-composio": patch\n"@aoagents/ao-plugin-notifier-desktop": patch\n"@aoagents/ao-plugin-notifier-discord": patch\n"@aoagents/ao-plugin-notifier-openclaw": patch\n"@aoagents/ao-plugin-notifier-slack": patch\n"@aoagents/ao-plugin-notifier-webhook": patch\n"@aoagents/ao-plugin-runtime-process": patch\n"@aoagents/ao-plugin-runtime-tmux": patch\n"@aoagents/ao-plugin-scm-github": patch\n"@aoagents/ao-plugin-scm-gitlab": patch\n"@aoagents/ao-plugin-terminal-iterm2": patch\n"@aoagents/ao-plugin-terminal-web": patch\n"@aoagents/ao-plugin-tracker-github": patch\n"@aoagents/ao-plugin-tracker-gitlab": patch\n"@aoagents/ao-plugin-tracker-linear": patch\n"@aoagents/ao-plugin-workspace-clone": patch\n"@aoagents/ao-plugin-workspace-worktree": patch\n"@aoagents/ao-web": patch\n---\n\nchore: canary build\n' > .changeset/canary-temp.md + node -e " + const cfg = require('./.changeset/config.json'); + const pkgs = cfg.linked.flat(); + let body = '--- +'; + pkgs.forEach(p => body += '"' + p + '": patch +'); + body += '--- + +chore: canary build +'; + require('fs').writeFileSync('.changeset/canary-temp.md', body); + " fi pnpm changeset version --snapshot nightly env: