Skip to content

bump

bump #132

Workflow file for this run

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@v3
with:
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
ref: 'main'
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install --frozen-lockfile
- name: Setup git
run: |
git config --global user.email "[email protected]"
git config --global user.name "cloud-sdk-js"
- name: Bump version
run: yarn run version
- name: Push
run: git push --follow-tags