File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
+ - ' release-*'
7
+ tags :
8
+ - ' [0-9]+.[0-9]+.[0-9]+'
6
9
paths-ignore :
7
10
- " **.md"
8
11
@@ -16,16 +19,11 @@ jobs:
16
19
- uses : actions/checkout@v2
17
20
with :
18
21
fetch-depth : 0
19
- - name : Verify app version
22
+ - name : Set artifact version
20
23
run : |
21
- APP_VERSION=$(cat package/.appversion)
22
- if [ $(git tag -l "$APP_VERSION") ]; then
23
- echo "App version $APP_VERSION already released. Please update app version in package/.appversion to represent next major/minor/patch increment"
24
- exit 1
25
- else
26
- echo "setting artifact version to $(echo $APP_VERSION-${{github.run_number}})"
27
- echo "ARTIFACT_VERSION=$(echo $APP_VERSION-${{github.run_number}})" >> $GITHUB_ENV
28
- fi
24
+ wget -q https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/setArtifactVersion.sh && chmod +x setArtifactVersion.sh
25
+ ./setArtifactVersion.sh
26
+ rm setArtifactVersion.sh
29
27
- name : Use Node.js 14.x
30
28
uses : actions/setup-node@v1
31
29
with :
@@ -35,11 +33,11 @@ jobs:
35
33
- name : Install dependencies root
36
34
run : npm install
37
35
- name : run test
38
- run : npm run test
39
- - name : Build
40
- run : npm run build
36
+ run : npm run test
37
+ - name : Build
38
+ run : npm run build
41
39
- name : Login to DockerHub
42
- uses : docker/login-action@v1
40
+ uses : docker/login-action@v1
43
41
with :
44
42
username : ${{ secrets.DOCKER_HUB_USERNAME }}
45
43
password : ${{ secrets.DOCKER_HUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments