Skip to content

Commit

Permalink
Refactor CI workflows to remove package-lock.json cleanup and simplif…
Browse files Browse the repository at this point in the history
…y dependency installation
  • Loading branch information
miladsoft committed Dec 13, 2024
1 parent 8050373 commit 418b0e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 418b0e3

Please sign in to comment.