Skip to content

CI: Add semantic-release preview workflow for pull requests #75

Description

@11eshaannegi

Description:

Currently, there is no way to preview release changes before merging a pull request. Adding a semantic-release dry-run workflow will allow us to simulate releases and display version bumps and release notes directly on PRs.

This improves visibility into how changes impact versioning and helps validate commit messages.

  1. Workflow Setup (.github/workflows/)
  • Add a release-preview workflow using semantic-release in dry-run mode
  • Configure it as a reusable or PR-triggered workflow
  1. Semantic Release Configuration
  • Run semantic-release with --dry-run and --no-ci flags
  • Ensure correct branch references for PR context
  1. Output Handling

Extract:

  • Next version
  • Release type (major/minor/patch)
  • Release notes
  • Display results in workflow logs
  1. PR Integration

Post a comment on the PR with:

  • Version preview
  • Release type
  • Generated release notes

Expected Outcome:

  • Developers can preview release impact before merging
  • Better understanding of version bumps
  • Improved confidence in release process

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions