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.
This commit is contained in:
parent
26a3346ad0
commit
843db0c11b
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue