Version Bump #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version Bump | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| bump: | |
| description: 'Version bump type' | |
| required: true | |
| type: choice | |
| options: | |
| - patch | |
| - minor | |
| - major | |
| jobs: | |
| version: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Configure git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Bump versions with Lerna | |
| run: | | |
| npx lerna version ${{ github.event.inputs.bump }} \ | |
| --yes \ | |
| --no-private \ | |
| --conventional-commits \ | |
| --no-push \ | |
| --no-git-tag-version | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| branch: release/version-bump | |
| commit-message: "chore: release version bump (${{ github.event.inputs.bump }})" | |
| title: "chore: release version bump (${{ github.event.inputs.bump }})" | |
| body: | | |
| ## Version Bump: `${{ github.event.inputs.bump }}` | |
| Auto-generated by the **Version Bump** workflow. | |
| ### What happens after merge? | |
| - Git tag is created from the version in `lerna.json` | |
| - GitHub Release is created | |
| - Packages are published to npm | |
| Please review version changes and CHANGELOGs before merging. | |
| labels: release |