Skip to content

Commit c62025d

Browse files
Copilotyi-nuo426
andcommitted
Add error handling for npm pack tarball detection
Co-authored-by: yi-nuo426 <218099172+yi-nuo426@users.noreply.github.com>
1 parent 5655616 commit c62025d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/test-meshery-integration.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ jobs:
3636
working-directory: sistent
3737
run: |
3838
npm pack
39-
SISTENT_PACKAGE=$(ls sistent-sistent-*.tgz | head -n 1)
39+
SISTENT_PACKAGE=$(ls sistent-sistent-*.tgz 2>/dev/null | \
40+
head -n 1)
41+
if [ -z "$SISTENT_PACKAGE" ]; then
42+
echo "Error: No Sistent package found"
43+
exit 1
44+
fi
4045
echo "SISTENT_PACKAGE=$SISTENT_PACKAGE" >> $GITHUB_ENV
46+
echo "Created package: $SISTENT_PACKAGE"
4147
4248
- name: Checkout Meshery UI
4349
uses: actions/checkout@v6

0 commit comments

Comments
 (0)