-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (47 loc) · 1.68 KB
/
versioning.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: Version Bump
on:
push:
branches:
- main
jobs:
version:
runs-on: ubuntu-latest
steps:
- name: "Cleanup Build folder"
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
#Get the latest version of the repository
- name: Checkout
uses: actions/checkout@v3
#Bump the backend version
- name: "Backend: Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGEJSON_DIR: "src"
with:
commit-message: "CI: bumps backend version to {{version}}"
skip-tag: "true"
skip-push: "true"
target-branch: "main"
minor-wording: "Minor:"
major-wording: "Major:"
rc-wording: "RELEASE,alpha"
tag-prefix: "v"
#Bump the frontend version
- name: "Frontend: Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGEJSON_DIR: "src/client"
with:
bump-policy: "ignore"
commit-message: "CI: bumps frontend version to {{version}}"
target-branch: "main"
minor-wording: "Minor:"
major-wording: "Major:"
rc-wording: "RELEASE,alpha"
tag-prefix: "v"