Skip to content

v3.21.0

v3.21.0 #211

Workflow file for this run

name: bump
on:
push:
branches:
- merge-changelogs
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
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
# ref: 'main'
- uses: actions/setup-node@v4
with:
node-version: 18
- run: yarn install --frozen-lockfile
- name: Bump version
id: bump
uses: ./.github/actions/changesets-fixed-version-bump
with:
majorVersion: ${{ inputs.majorVersion }}
- run: |
yarn ts-node ${{ github.workspace }}/scripts/update-documentation-md.ts
yarn generate
yarn doc
env:
NEXT_PACKAGE_VERSION: ${{ steps.bump.outputs.version }}
- name: Merge Changelogs
id: merge-changelogs
uses: ./.github/actions/merge-changelogs
- run: yarn -s ts-node ${{ github.workspace }}/scripts/write-changelog.ts
env:
CHANGELOG: ${{ steps.merge-changelogs.outputs.changelog }}
# TODO: commit-and-tag does not need to rely on changesets, should be a composite action
- name: Setup git
run: |
git config --global user.email "[email protected]"
git config --global user.name "bot-sdk-js"
- name: Commit and tag
uses: ./.github/actions/commit-and-tag
with:
version: ${{ steps.bump.outputs.version }}