bump #4
This file contains 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: bump | |
on: | |
workflow_dispatch: | |
inputs: | |
majorVersion: | |
description: Mandatory, when bumping a major version. Semver compatible version string (X.Y.Z). Must not be set for patch and minor version releases. | |
required: false | |
env: | |
INPUT_MAJOR_VERSION: ${{ inputs.majorVersion }} | |
jobs: | |
bump: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }} | |
ref: 'main' | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ vars.PNPM_VERSION }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ vars.DEFAULT_NODE_VERSION }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- name: Setup git | |
run: | | |
git config --global user.email "ai-sdk-js@github.com" | |
git config --global user.name "ai-sdk-js" | |
- name: Bump version | |
run: pnpm changeset version | |
- name: Remove changelog files - (TODO) Remove this step when changeset version is fixed | |
run: rm -rf **/CHANGELOG.md | |
- name: Push | |
run: git push --follow-tags |