Skip to content

chore(ci): bump publish-docs orb to @0.5#1610

Merged
joshuayoes merged 1 commit into
masterfrom
chore/bump-publish-docs-orb
May 4, 2026
Merged

chore(ci): bump publish-docs orb to @0.5#1610
joshuayoes merged 1 commit into
masterfrom
chore/bump-publish-docs-orb

Conversation

@joshuayoes
Copy link
Copy Markdown
Contributor

Please verify the following:

  • yarn build-and-test:local passes
  • I have added tests for any new features, if relevant
  • README.md (or relevant documentation) has been updated with your changes

Describe your PR

Bumps the infinitered/publish-docs orb from @0.4 (resolves to v0.4.13) to @0.5 (resolves to v0.5.1). This unbreaks publish-docs/publish_docs on master pushes when the merge commit body contains markdown / multi-line content.

Why

The orb's v0.4.13 wrote unescaped multi-line shell content to $BASH_ENV via echo "export VAR=\"$VAL\"". When the merge commit's body had colons (e.g. inline JSON snippets) or newlines, bash interpreted each line as a command after sourcing $BASH_ENV at the start of the next step. Symptom on the master push for #1609:

/tmp/.bash_env-...-build: line 39: README.md: command not found
/tmp/.bash_env-...-build: line 39: NPM_TOKEN: command not found
... [40+ more]
Error: Not a GitHub URL.
Exited with code exit status 1

Changes

  • .circleci/config.yml — bump publish-docs: infinitered/publish-docs@0.4@0.5.

Notes

  • Fix is upstream in infinitered/orb-publish-docs#40, released as v0.5.1 today. Replaces the unsafe echo "export VAR=\"$VAL\"" patterns with printf 'export VAR=%q\n' "$VAL" in 5 internal scripts.
  • The 0.4 → 0.5 diff is internal only — no job, command, or parameter signatures change. All existing usage (publish-docs/build_docs and publish-docs/publish_docs with ir_docs_config params) remains compatible.
  • Verified npx nx affected --target=version --base=origin/master --head=HEAD returns 0 projects, so this merge will not cascade-trigger any unintended package releases.
  • Using @0.5 (auto-resolves to latest 0.5.x) rather than pinned @0.5.1 so future patch fixes apply automatically. Matches the prior @0.4 style.

🤖 Generated with Claude Code

`infinitered/publish-docs@0.4` (resolves to v0.4.13) had a bug where
multiline / colon-containing commit message bodies polluted $BASH_ENV
when sourced, producing a flood of "command not found" errors and
ultimately failing the publish_docs job with `Error: Not a GitHub URL`.

Hit this on the master push for #1609. Diagnosis: the orb wrote unescaped
multi-line content to $BASH_ENV via `echo "export VAR=\"${VAL}\""`, which
bash then evaluated as commands at the start of the next step.

Fixed upstream in infinitered/orb-publish-docs#40 (replaces those echoes
with `printf 'export VAR=%q\n' "$VAL"`) and just released as v0.5.1.

Diff `@0.4 → @0.5.1` is purely internal scripts — zero public API change.
All existing job/parameter usage in this repo (build_docs / publish_docs
with the `ir_docs_config` params) remains compatible.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joshuayoes joshuayoes merged commit 44f935e into master May 4, 2026
7 checks passed
@joshuayoes joshuayoes deleted the chore/bump-publish-docs-orb branch May 4, 2026 19:02
infinitered-circleci added a commit to infinitered/ir-docs that referenced this pull request May 4, 2026
## Please verify the following:

- [x] `yarn build-and-test:local` passes
- [ ] I have added tests for any new features, if relevant
- [x] `README.md` (or relevant documentation) has been updated with your
changes

## Describe your PR

Bumps the `infinitered/publish-docs` orb from `@0.4` (resolves to
v0.4.13) to `@0.5` (resolves to v0.5.1). This unbreaks
`publish-docs/publish_docs` on master pushes when the merge commit body
contains markdown / multi-line content.

### Why

The orb's v0.4.13 wrote unescaped multi-line shell content to
`$BASH_ENV` via `echo "export VAR=\"$VAL\""`. When the merge commit's
body had colons (e.g. inline JSON snippets) or newlines, bash
interpreted each line as a command after sourcing `$BASH_ENV` at the
start of the next step. Symptom on the master push for #1609:

```
/tmp/.bash_env-...-build: line 39: README.md: command not found
/tmp/.bash_env-...-build: line 39: NPM_TOKEN: command not found
... [40+ more]
Error: Not a GitHub URL.
Exited with code exit status 1
```

### Changes

- `.circleci/config.yml` — bump `publish-docs:
infinitered/publish-docs@0.4` → `@0.5`.

### Notes

- Fix is upstream in
[infinitered/orb-publish-docs#40](infinitered/orb-publish-docs#40),
released as `v0.5.1` today. Replaces the unsafe `echo "export
VAR=\"$VAL\""` patterns with `printf 'export VAR=%q\n' "$VAL"` in 5
internal scripts.
- The `0.4 → 0.5` diff is internal only — no job, command, or parameter
signatures change. All existing usage (`publish-docs/build_docs` and
`publish-docs/publish_docs` with `ir_docs_config` params) remains
compatible.
- Verified `npx nx affected --target=version --base=origin/master
--head=HEAD` returns 0 projects, so this merge will not cascade-trigger
any unintended package releases.
- Using `@0.5` (auto-resolves to latest 0.5.x) rather than pinned
`@0.5.1` so future patch fixes apply automatically. Matches the prior
`@0.4` style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> infinitered/reactotron#1610
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant