-
Notifications
You must be signed in to change notification settings - Fork 57
59 lines (55 loc) · 1.8 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
env:
INPUT_MAJOR_VERSION: ${{ inputs.majorVersion }}
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
# ref: 'main'
- uses: actions/setup-node@v3
with:
node-version: 18
- run: ls ${{ github.workspace }}/scripts
- run: yarn install --frozen-lockfile
- name: Setup git
run: |
git config --global user.email "[email protected]"
git config --global user.name "cloud-sdk-js"
# - name: Bump version
# run: yarn run version
- name: Bump version
uses: ./.github/actions/changesets-fixed-version-bump
with:
before-bump: yarn ts-node ${{ github.workspace }}/scripts/before-bump.ts
after-bump: |
yarn generate
yarn doc
# - id: get-workspaces
# run: |
# workspaces=`yarn -s ts-node ${{ github.workspace }}/scripts/get-workspaces.ts`
# echo $workspaces
# echo "workspaces=$workspaces" >> $GITHUB_OUTPUT
# - name: Get Changelog
# id: merge-changelogs
# uses: ./.github/actions/merge-changelogs
# with:
# workspaces: ${{ steps.get-workspaces.outputs.workspaces }}
# write-file: 'true'
# - run: |
# yarn generate
# yarn doc
# yarn ts-node ${{ github.workspace }}/scripts/after-bump.ts
# - name: Push
# run: git push #--follow-tags