This repository was archived by the owner on Sep 3, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ SITE_CHANGES=$(git diff "$BRANCH".."$REMOTE" | wc -l)
99echo " Detected $SITE_CHANGES changes"
1010if [ " $SITE_CHANGES " -gt " 0" ]; then
1111 echo " Checking to make sure package version was updated..."
12- VERSION_CHANGED =$( git diff " $BRANCH " .." $REMOTE " -G ' "version": ' -- $REPO_ROOT /package.json | wc -l)
13- if [ " $VERSION_CHANGED " -gt " 0" ]; then
14- echo " Version was updated! Continuing..."
12+ HISTORY_CHANGED =$( git diff " $BRANCH " .." $REMOTE " -- $REPO_ROOT /HISTORY.md | wc -l)
13+ if [ " $HISTORY_CHANGED " -gt " 0" ]; then
14+ echo " History was updated! Continuing..."
1515 else
16- echo " Version was not updated :( Aborting push."
16+ echo " History was not updated :( Aborting push."
1717 exit 1
1818 fi
1919fi
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ defaults: &defaults
55
66version : 2
77jobs :
8- changelog :
9- << : *defaults
10- steps :
11- - checkout
12- - run : make release-test
138 test :
149 << : *defaults
1510 steps :
5449 - run : yarn run snyk test --severity-threshold=high
5550 - run : yarn run snyk monitor
5651
52+ changelog :
53+ << : *defaults
54+ steps :
55+ - checkout
56+ - run : make release-test
57+
5758 publish :
5859 << : *defaults
5960 steps :
@@ -74,8 +75,6 @@ workflows:
7475 filters :
7576 tags :
7677 only : /.*/
77- requires :
78- - changelog
7978 - coverage :
8079 filters :
8180 tags :
@@ -87,6 +86,7 @@ workflows:
8786 - publish :
8887 requires :
8988 - test
89+ - changelog
9090 filters :
9191 tags :
9292 only : /v[0-9]+(\.[0-9]+)*(-.+)?/
You can’t perform that action at this time.
0 commit comments