-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (39 loc) · 1.54 KB
/
update-versions.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
name: Update Versions
on:
workflow_dispatch:
inputs:
branchVersion:
description: 'Branch version number'
required: true
packageVersion:
description: 'Package version number'
required: true
manifestVersion:
description: 'Manifest version number'
required: true
jobs:
update-versions:
runs-on: ubuntu-latest
steps:
- name: Setup Checkout Actions
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Update Runtime Version
run: node scripts/update-versions.js *.manifest.*.json manifest.*.json *.fin.json runtime ${{ inputs.manifestVersion }}
- name: Update Core Version
run: node scripts/update-versions.js package.json dependencies ${{ inputs.packageVersion }}
- name: Update Adapter Version
run: node scripts/update-versions.js package.json devDependencies ${{ inputs.packageVersion }}
- name: Update main repo version
run: node scripts/update-versions.js package.json version ${{ inputs.packageVersion }}
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
- name: Create New Branch
run: git checkout -b ${{ inputs.branchVersion }} && git add --all && git commit -m "bump version to ${{ inputs.branchVersion }}" && git push origin ${{ inputs.branchVersion }}