-
Notifications
You must be signed in to change notification settings - Fork 83
40 lines (37 loc) · 1.04 KB
/
bump-version.yaml
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
32
33
34
35
36
37
38
39
40
# release package
name: Bump version
on:
workflow_dispatch:
inputs:
bump:
description: 'bump version by major, minor or patch'
required: true
options:
- 'patch'
- 'minor'
- 'major'
default: 'patch'
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app_id: ${{ secrets.PREEVY_AUTOMATION_APP_ID }}
private_key: ${{ secrets.PREEVY_AUTOMATION_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: yarn
- run: yarn
- run: yarn build
-
run: |
git config --global user.name 'Preevy Automation'
git config --global user.email '[email protected]'
- run: yarn lerna version ${{ github.event.inputs.bump }} --exact --yes