-
Notifications
You must be signed in to change notification settings - Fork 52
31 lines (29 loc) · 919 Bytes
/
bump.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: bump
on:
workflow_dispatch:
inputs:
bump:
description: Version bump to be used. Can either be 'patch' or 'minor'.
required: false
default: 'minor'
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- run: yarn install --frozen-lockfile
- name: Setup git
run: |
git config --global user.email "cloud-sdk-js@github.com"
git config --global user.name "cloud-sdk-js"
- name: Bump minor version
if: github.event.inputs.bump == 'minor'
run: yarn lerna version minor --force-publish -y
- name: Bump patch version
if: github.event.inputs.bump == 'patch'
run: yarn lerna version patch --force-publish -y