Skip to content

Bump the versions

Bump the versions #2

Workflow file for this run

name: Bump the versions
on:
workflow_dispatch:
inputs:
version:
description: 'What to bump?'
required: true
default: 'patch'
type: choice
options:
- 'patch'
- 'minor'
- 'major'
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: yarn version:all ${{ inputs.version }}
- run: git add .
- run: VERSION=`yarn workspace @datadog/webpack-plugin info @datadog/webpack-plugin --json | jq -r '.children.Version'`
- run: TAG_NAME="v$VERSION"
- run: git commit -m $TAG_NAME
- run: git tag -a $TAG_NAME -m $TAG_NAME
- run: git push --follow-tags