Skip to content

fix(ci): add workflow_dispatch to publish and remove [skip ci] from auto-bump#16

Merged
WellDunDun merged 2 commits intomasterfrom
fix/publish-skip-ci
Mar 8, 2026
Merged

fix(ci): add workflow_dispatch to publish and remove [skip ci] from auto-bump#16
WellDunDun merged 2 commits intomasterfrom
fix/publish-skip-ci

Conversation

@WellDunDun
Copy link
Owner

@WellDunDun WellDunDun commented Mar 8, 2026

Summary

  • Add workflow_dispatch to publish.yml so we can manually trigger publishes when needed
  • Remove [skip ci] from the auto-bump commit message — this tag was propagating into squash merge commit bodies, causing GitHub Actions to skip all workflows (including Publish) on merge to master

This is why PR #15's merge didn't trigger a publish: the squashed body contained chore: bump cli version to v0.1.4 [skip ci].

Test plan

  • Merge this PR and verify the Publish workflow runs
  • Verify reins-cli@0.1.4 appears on npm after publish
  • Confirm workflow_dispatch button appears on the Publish workflow page

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Version bump commits will now trigger continuous integration runs.
    • Publish workflow can be run manually and is guarded to execute publishing only from the master branch.

…uto-bump

The [skip ci] tag in auto-bump commit messages propagates into squash
merge commits, causing the Publish workflow to be skipped on merge.
Remove [skip ci] from the auto-bump message and add workflow_dispatch
to publish.yml for manual re-runs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 8, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7fb08d19-3f8d-4e43-adfa-33918302d02c

📥 Commits

Reviewing files that changed from the base of the PR and between 2480c25 and fbeecae.

📒 Files selected for processing (1)
  • .github/workflows/publish.yml

📝 Walkthrough

Walkthrough

The PR updates two GitHub Actions workflows: it removes the [skip ci] suffix from the auto-bump commit message so the bump commit will run CI, and it adds a workflow_dispatch trigger plus a master-branch guard to the publish workflow to allow manual runs while constraining publishing to master.

Changes

Cohort / File(s) Summary
Auto-bump workflow
​.github/workflows/auto-bump-cli-version.yml
Removed the " [skip ci]" suffix from the bump commit message so CI will run on the auto-bump commit.
Publish workflow
​.github/workflows/publish.yml
Added workflow_dispatch trigger for manual execution and added if: github.ref == 'refs/heads/master' guard to the publish job.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description covers Summary and Test plan sections with clear explanations, but is missing the required Changes, Testing checklist, and Merge Readiness sections from the template. Add the Changes section with a bulleted list, complete the Testing checklist items, and include the Merge Readiness checklist section.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the two main changes: adding workflow_dispatch to publish and removing [skip ci] from auto-bump.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/publish-skip-ci

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/publish.yml:
- Around line 3-6: The publish workflow currently allows manual dispatch on any
branch; add a guard to the publish job so it only runs for master when manually
triggered—modify the publish job configuration (the job named "publish" in the
workflow) to include an if condition that verifies the run ref is master (e.g.
check github.ref == 'refs/heads/master' or github.ref_name == 'master') before
executing steps, and ensure any dependent steps or job-level permissions still
run only when that condition passes.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 15202e35-587e-4899-abe5-c4849e9f03da

📥 Commits

Reviewing files that changed from the base of the PR and between eff1a44 and 2480c25.

📒 Files selected for processing (2)
  • .github/workflows/auto-bump-cli-version.yml
  • .github/workflows/publish.yml

Guard against accidental releases from non-master branches when
using workflow_dispatch manual trigger.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@WellDunDun WellDunDun merged commit 5510d31 into master Mar 8, 2026
2 checks passed
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