Feature: Add Workflow for Manual Version Bumps

未关闭 适合新手
#933 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, yaml
领域
ci-cd

调研方向

该 issue 提供了一个完整的示例,用于新建 .github/workflows/version-bump.yml,其中包含一个 workflow_dispatch 的 choice 输入和 taj54/universal-version-bump@v1 action。请查看该 action 在 Marketplace 上的 README,了解 bump-type 输入以及它会编辑哪些版本文件。当该 workflow 在 Actions 标签页中出现并提供 patch/minor/major 选项,且手动运行能够更新版本时,即算完成。

由索引模型根据 Issue 内容生成。

描述

Proposed for NaturalIntelligence/fast-xml-parser.

Component

Other

Problem statement

Currently, updating the project version requires manual edits across version files, which increases maintenance overhead and introduces the risk of human error or inconsistent versioning across releases. Maintainers need a standardized, one-click way to trigger semantic version bumps (patch, minor, major) directly from the repository's Actions tab.

Proposed solution

Add a manually triggered (workflow_dispatch) GitHub Actions workflow powered by Universal Version Bump so maintainers can select the bump type directly from the Actions tab.

Example Workflow (.github/workflows/version-bump.yml)
name: Bump Version

on:
  workflow_dispatch:
    inputs:
      bump_type:
        description: "Version bump type (patch, minor, major)"
        required: true
        default: "patch"
        type: choice
        options:
          - patch
          - minor
          - major

permissions:
  contents: write

jobs:
  bump:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Universal Version Bump
        uses: taj54/universal-version-bump@v1
        with:
          bump-type: ${{ inputs.bump_type }}
Acceptance Criteria
  • A workflow is visible in the Actions tab.
  • Maintainers can choose the bump type (patch, minor, major).
  • Running the workflow updates the version automatically using Universal Version Bump.
  • (Optional) Extend the workflow later to include Git tagging + release creation.
Additional context
  • Target Repository: NaturalIntelligence/fast-xml-parser
  • GitHub Marketplace: Universal Version Bump
  • Source Repository: taj54/universal-version-bump
  • Why This Matters: Keeps project versions aligned with development progress, reduces manual overhead, and lays the foundation for future enhancements like automated tagging, changelog updates, and releases.

If you would like, I can open a PR to add this workflow.

主要语言
JavaScript
星标
3.1k
派生
415
平均合并
4 天 15 小时
30 天内合并 PR
8

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NaturalIntelligence/fast-xml-parser 的其他 Issue

查看 NaturalIntelligence/fast-xml-parser 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。