Skip to content

Commit 4c28eba

Browse files
committed
chore: sync fix with template
1 parent 96537c3 commit 4c28eba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: Prevent releasing if the repo is generated from the template and pkg.name not changed
1515
run: |
16+
set -e
1617
repo="$GITHUB_REPOSITORY"
1718
pkg=$(node -p 'require("./package.json").name')
18-
if [ "$pkg" == "@tlib/package-template" && "$repo" != 'tlibjs/package-template' ]; then
19+
if [ "$pkg" == "@tlib/package-template" ] && [ "$repo" != 'tlibjs/package-template' ]; then
1920
echo 'Please modify "name" field in package.json' >&2
2021
exit 1
2122
else

0 commit comments

Comments
 (0)