Skip to content

Commit 455471c

Browse files
Enhance deploy workflow with manual trigger and install logic
Added manual trigger for workflow and improved dependency installation logic.
1 parent 2b7d58c commit 455471c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main # or 'master' if your repo uses that
7+
workflow_dispatch: # ✅ allows manual run from GitHub Actions UI
78

89
permissions:
910
contents: write
@@ -22,7 +23,12 @@ jobs:
2223
node-version: 20
2324

2425
- name: Install dependencies
25-
run: npm ci
26+
run: |
27+
if [ -f package-lock.json ]; then
28+
npm ci
29+
else
30+
npm install
31+
fi
2632
2733
- name: Build project
2834
run: npm run build

0 commit comments

Comments
 (0)