Skip to content

feat: Add automated version bump and crates.io publish workflow - #2

Merged
0xvasanth merged 3 commits into
mainfrom
feat/auto-version-bump
Sep 25, 2025
Merged

feat: Add automated version bump and crates.io publish workflow#2
0xvasanth merged 3 commits into
mainfrom
feat/auto-version-bump

Conversation

@0xvasanth

Copy link
Copy Markdown
Owner

Summary

  • Added GitHub Actions workflow for automatic version management
  • Automatically bumps minor version when PRs are merged to main
  • Publishes new versions to crates.io for public use

Changes

  • Created .github/workflows/version-bump.yml workflow that:
    • Triggers on PR merge to main branch
    • Bumps minor version using cargo-edit
    • Builds and tests the crate in release mode
    • Publishes to crates.io (requires CARGO_REGISTRY_TOKEN secret)
    • Creates GitHub release with PR details
    • Includes crates.io installation instructions in release notes

Setup Required

Before merging, please add the CARGO_REGISTRY_TOKEN secret in the repository settings:

  1. Go to Settings → Secrets and variables → Actions
  2. Add a new repository secret named CARGO_REGISTRY_TOKEN
  3. Set the value to your crates.io API token

Test Plan

  • Workflow file is syntactically valid
  • Crate builds successfully
  • Will be tested on merge to main

- Automatically bumps minor version on PR merge to main
- Builds and tests the crate in release mode
- Publishes to crates.io with proper authentication
- Creates GitHub release with PR details and crates.io info
@0xvasanth 0xvasanth self-assigned this Sep 25, 2025
@0xvasanth
0xvasanth requested a review from Copilot September 25, 2025 07:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a comprehensive automated workflow for version management and publishing to crates.io, automating the release process for Rust crates when PRs are merged to main.

  • Implements automatic minor version bumping on PR merge
  • Builds and publishes crate to crates.io registry
  • Creates GitHub releases with installation instructions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/version-bump.yml Outdated
Comment thread .github/workflows/version-bump.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 25, 2025 07:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/version-bump.yml
Comment thread .github/workflows/version-bump.yml
@0xvasanth
0xvasanth merged commit c7f2c2f into main Sep 25, 2025
2 of 6 checks passed
@0xvasanth
0xvasanth deleted the feat/auto-version-bump branch September 25, 2025 07:55
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.

2 participants