From 4158cdbee2b53aeb1f6d8be4bcc49b423f274e9d Mon Sep 17 00:00:00 2001 From: i-trytoohard Date: Sun, 17 May 2026 17:14:11 +0000 Subject: [PATCH] fix(canary): use heredoc for node script to avoid shell quoting issues The double-quoted node -e broke on the \" inside the JS string. Heredoc avoids all shell quoting problems. --- .github/workflows/canary.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index d38f5e0f4..9c389c70a 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -111,7 +111,7 @@ 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 - node -e " + node << 'SCRIPT' const cfg = require('./.changeset/config.json'); const pkgs = cfg.linked.flat(); let body = '--- @@ -123,7 +123,7 @@ jobs: chore: canary build '; require('fs').writeFileSync('.changeset/canary-temp.md', body); - " + SCRIPT fi pnpm changeset version --snapshot nightly env: