Skip to content

Commit 4ec1825

Browse files
committed
build: check for whether CLI test file exists before copying
1 parent 2557d9d commit 4ec1825

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/node_modules/@stdlib/_tools/scripts/templates/workflow_productionize_cli.yml.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,14 +767,16 @@ jobs:
767767
git checkout production
768768
git checkout -b cli
769769

770-
# Copy files to cli directory:
771-
- name: 'Copy files to cli directory'
770+
# Copy files to `cli` directory:
771+
- name: 'Copy files to `cli` directory'
772772
run: |
773773
mkdir -p cli
774774
mkdir -p cli/docs cli/test
775775
cp README.md LICENSE CONTRIBUTORS NOTICE ./cli
776776
cp -r bin etc ./cli
777-
cp test/test.cli.js ./cli/test
777+
if [ -e "test/test.cli.js" ]; then
778+
cp test/test.cli.js ./cli/test
779+
fi
778780
if [ -d "test/fixtures" ]; then
779781
cp -r test/fixtures ./cli/test
780782
fi

0 commit comments

Comments
 (0)