chore: making semantic-release fail if no release available
Build / Build-and-ng-test (pull_request) Successful in 1m17s Details

This commit is contained in:
Mihajlo Medjedovic 2023-10-11 16:34:06 +02:00
parent 73a149ea7b
commit b776b80728
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ jobs:
run: |
npm i
npm i -g semantic-release
# We do a semantic-release DRY RUN to make the job fail if there are no changes to release
GITEA_TOKEN=${{ secrets.RELEASE_TOKEN }} GITEA_URL=https://git.datacontroller.io semantic-release --dry-run | grep -q "There are no relevant changes, so no new version is released." && exit 1
GITEA_TOKEN=${{ secrets.RELEASE_TOKEN }} GITEA_URL=https://git.datacontroller.io semantic-release
- name: Frontend Build