Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit e434971

Browse files
committed
hopefully fix, require changelog for publish
1 parent 6b777af commit e434971

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.circleci/changelog-check.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ SITE_CHANGES=$(git diff "$BRANCH".."$REMOTE" | wc -l)
99
echo "Detected $SITE_CHANGES changes"
1010
if [ "$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
1919
fi

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ defaults: &defaults
55

66
version: 2
77
jobs:
8-
changelog:
9-
<<: *defaults
10-
steps:
11-
- checkout
12-
- run: make release-test
138
test:
149
<<: *defaults
1510
steps:
@@ -54,6 +49,12 @@ jobs:
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]+)*(-.+)?/

0 commit comments

Comments
 (0)