Skip to content

ci: publish snapshot packages when PR body includes #snapshot#14

Merged
danbot315 merged 5 commits intomainfrom
feat/pr-snapshot-publish-marker
Mar 2, 2026
Merged

ci: publish snapshot packages when PR body includes #snapshot#14
danbot315 merged 5 commits intomainfrom
feat/pr-snapshot-publish-marker

Conversation

@danbot315
Copy link
Copy Markdown
Contributor

Implements PR snapshot publishing controlled by PR body marker.

Behavior

  • On pull requests, if PR body contains #snapshot:
    • run quality checks
    • detect pending changesets
    • create snapshot versions (changeset version --snapshot pr-<number>)
    • publish with tag pr-<number>
  • If no pending changesets, snapshot publish is skipped.
  • Fork PRs are excluded from publish path for safety/token availability.

Also confirmed

  • Main release workflow already publishes only when changesets exist.

Validation

  • bun run lint
  • bun run build
  • bun run typecheck
  • bun run test -- packages/core/src/workflow-generator.test.ts packages/core/src/context.test.ts packages/core/src/config.test.ts packages/core/src/plugins/shared-workflow-helper.test.ts

@danbot315 danbot315 requested a review from azweb76 March 2, 2026 05:25
@danbot315 danbot315 merged commit dcd59fb into main Mar 2, 2026
2 checks passed
@danbot315 danbot315 deleted the feat/pr-snapshot-publish-marker branch March 2, 2026 05:30
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