Skip to content

Bump Version

Bump Version #3

Workflow file for this run

name: Bump Version
on:
workflow_dispatch:
inputs:
version:
description: 'Version to bump to (e.g., 1.1.0)'
required: true
type: string
jobs:
bump-version:
runs-on: ubuntu-latest
environment: production_release
env:
MESSAGIX_SKIP_POSTINSTALL: true
permissions:
contents: write
steps:
- name: Generate GitHub App Token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.generate_token.outputs.token }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Update package.json version
run: npm version ${{ inputs.version }} --no-git-tag-version
- name: Commit and tag
run: |
git add package.json
git commit -m "chore: bump version to ${{ inputs.version }}"
git tag v${{ inputs.version }}
- name: Push changes
run: |
git push origin main
git push origin v${{ inputs.version }}