-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (46 loc) · 1.48 KB
/
create-constellation-release.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Start @blockchain-com/constellation release
on:
workflow_dispatch:
inputs:
version:
description: "Semver type of new version (major / minor / patch)"
required: true
type: choice
options:
- patch
- minor
- major
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: "development"
fetch-depth: 0
- name: Install node.js v14.16
uses: actions/setup-node@v2
with:
node-version: 14.16
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Bump version
run: yarn workspace @blockchain-com/constellation version ${{ github.event.inputs.version }}
- name: Get Constellation package version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: "packages/constellation/package.json"
prop_path: "version"
- name: Adding changes from bump
run: git add .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: release @blockchain-com/constellation@v${{ steps.version.outputs.prop }}
title: Release @blockchain-com/constellation@v${{ steps.version.outputs.prop }}
branch: release/constellation-v${{ steps.version.outputs.prop }}
base: main
delete-branch: true