Skip to content

Commit c29f13a

Browse files
authored
Update azure-webapps-node.yml (#8)
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
1 parent 3f1a71a commit c29f13a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/azure-webapps-node.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ jobs:
4747
npm install
4848
npm run build --if-present
4949
npm run test --if-present
50-
50+
- name: npm install, build, and test
51+
run: |
52+
npm install
53+
npm run build --if-present
54+
npm run test --if-present
55+
- name: Check for lock file
56+
run: |
57+
if [ ! -f package-lock.json ] && [ ! -f yarn.lock ]; then
58+
echo "Error: No lock file found!"
59+
exit 1
60+
fi
5161
- name: Upload artifact for deployment job
5262
uses: actions/upload-artifact@v4
5363
with:

0 commit comments

Comments
 (0)