Skip to content

Complete post-publish steps for successful packages #135

@goulvenclech

Description

@goulvenclech

Related to #134

Describe the problem

When sampo publish fails partway through publishing multiple packages, post-publish steps (GitHub releases, tags) are not executed for packages that were successfully published.

Example scenario:

  • Package A publishes successfully ✓
  • Package B fails ✗
  • Result: Package A is on the registry but has no GitHub release or tag 🙁

What's the expected result?

If a package publish fails, Sampo should:

  • Skip remaining unpublished packages
  • Still complete post-publish steps (GitHub releases, tags) for successfully published packages
  • Report clear summary of what succeeded and what failed

Example output:

✓ Published package-a@1.0.0
✗ Failed to publish package-b@1.0.0: [error message]
⊘ Skipped package-c (depends on package-b)

Completing post-publish tasks for successful packages...
✓ Created tag package-a-v1.0.0
✓ Created GitHub release for package-a@1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3 - normalNew features, bugs with workarounds, bugs affecting very specific usage...crt:sampoChanges in Sampo CLI crate.crt:sampo-coreChanges in Sampo core logic or internal utils.crt:sampo-github-actionChanges in Sampo's Github action crate.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions