Skip to content

Bump docs version

Bump docs version #14

Workflow file for this run

name: Bump docs version
permissions:
contents: write
on:
workflow_dispatch:
inputs:
version:
type: choice
description: 'Bump docs version by how much?'
required: true
default: 'none'
options:
- 'major'
- 'minor'
- 'patch'
- 'none'
jobs:
bump:
name: Bump docs version
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.14.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Configure git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Bump version
if: inputs.version != 'none'
run: |
pnpm version ${{ inputs.version }}
git push --follow-tags
- name: Call workflow
env:
GH_TOKEN: ${{ github.token }}
run: gh workflow run build.yml