Skip to content

Commit ba281c4

Browse files
committed
chore: ignore ENOCHANGE on publish
1 parent 1ebe441 commit ba281c4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: npm install --no-audit --ignore-scripts
2525

2626
- name: Publish release
27-
run: npm run semantic-release
27+
run: ./.github/workflows/release.sh
2828
env:
2929
NPM_TOKEN: ${{ secrets.NPM_TELERIK_TOKEN }}
3030
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/release.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
ERROR=$(npm run semantic-release 2>&1)
4+
EXIT_CODE=$?
5+
6+
echo $ERROR;
7+
8+
if [ $EXIT_CODE -eq 1 ] && [[ $ERROR != *"ENOCHANGE"* ]]; then
9+
exit 1;
10+
else
11+
exit 0;
12+
fi
13+

0 commit comments

Comments
 (0)