From 418b0e3f9d3b5fda7cd99d04d50c40124e5bfc2c Mon Sep 17 00:00:00 2001 From: Milad Raeisi Date: Fri, 13 Dec 2024 14:47:44 +0400 Subject: [PATCH] Refactor CI workflows to remove package-lock.json cleanup and simplify dependency installation --- .github/workflows/deploy.yml | 2 +- .github/workflows/release.yml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b87b0c7..48a4d6c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4ba874..e492b22 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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