Refactor CI workflows to remove package-lock.json cleanup and simplify dependency installation

This commit is contained in:
Milad Raeisi
2024-12-13 14:47:44 +04:00
parent 8050373c29
commit 418b0e3f9d
2 changed files with 6 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ jobs:
rm -f package-lock.json
- name: Install dependencies
run: npm install --force
run: npm install
- name: Run deploy script
run: npm run deploy

View File

@@ -32,13 +32,15 @@ jobs:
node-version: 20
cache: 'npm'
# Step 3: Remove node_modules
# Step 3: Remove node_modules and package-lock.json
- name: Clean up
run: rm -rf node_modules
run: |
rm -rf node_modules
rm -f package-lock.json
# Step 4: Install dependencies
- name: Install Dependencies
run: npm install --force
run: npm install
# Step 5: Determine version
- name: Set Version Variable