Skip to content

Commit 97ee012

Browse files
authored
Fix: [AEA-0000] - pin conventional-changelog-eslint and stop it updating automatically (#91)
## Summary - Routine Change ### Details - pin conventional-changelog-eslint as a dependency to stop it being auto updated - fail ci build if it can not get tag
1 parent 1217a5a commit 97ee012

3 files changed

Lines changed: 1344 additions & 496 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ jobs:
6565
id: output_version_tag
6666
run: |
6767
VERSION_TAG=$(git rev-parse --short HEAD)
68-
NEXT_VERSION=$(npx semantic-release --dry-run | grep -i 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/')
68+
npx semantic-release --dry-run > semantic-release-output.log
69+
NEXT_VERSION=$(grep -i 'The next release version is' semantic-release-output.log | sed -E 's/.* ([[:digit:].]+)$/\1/')
70+
if [ -z "${NEXT_VERSION}" ]
71+
then
72+
echo "Could not get next tag. Here is the log from semantic-release"
73+
cat semantic-release-output.log
74+
exit 1
75+
fi
6976
tagFormat=$(jq -r .tagFormat .releaserc)
7077
if [ "${tagFormat}" = "null" ]
7178
then

0 commit comments

Comments
 (0)