Skip to content

Commit c18bd0f

Browse files
Merge pull request #79 from codefresh-io/version_file
add version file
2 parents b5d7d4a + 7994032 commit c18bd0f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.codefresh/codefresh.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,25 @@ steps:
2222
commands:
2323
- export VERSION=$(jq -r ".version" package.json)
2424
- cf_export VERSION
25+
# - export FILE_VERSION= $(cat ./venonactl/VERSION)
26+
- cf_export FILE_VERSION=$(cat ./venonactl/VERSION)
2527
when:
2628
steps:
2729
- name: main_clone
2830
on:
2931
- success
3032

33+
validate_version:
34+
title: 'validate package version equal VERSION file'
35+
image: node:alpine
36+
commands:
37+
- if [ $VERSION != $FILE_VERSION ] ; then exit 1 ; else echo "version are equal"; fi;
38+
when:
39+
steps:
40+
- name: calculate_version
41+
on:
42+
- success
43+
3144
eslint:
3245
title: 'Run eslint'
3346
image: codefresh/node-tester-image:10.13.0

venonactl/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.29.0

0 commit comments

Comments
 (0)