We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96537c3 commit 4c28ebaCopy full SHA for 4c28eba
.github/workflows/release.yml
@@ -13,9 +13,10 @@ jobs:
13
- uses: actions/checkout@v2
14
- name: Prevent releasing if the repo is generated from the template and pkg.name not changed
15
run: |
16
+ set -e
17
repo="$GITHUB_REPOSITORY"
18
pkg=$(node -p 'require("./package.json").name')
- if [ "$pkg" == "@tlib/package-template" && "$repo" != 'tlibjs/package-template' ]; then
19
+ if [ "$pkg" == "@tlib/package-template" ] && [ "$repo" != 'tlibjs/package-template' ]; then
20
echo 'Please modify "name" field in package.json' >&2
21
exit 1
22
else
0 commit comments