Skip to content

Commit d9d4e78

Browse files
committed
chore: streamline deployment workflow by using npm ci and simplifying Playwright installation
- Replaced npm install with npm ci for faster and more reliable dependency installation. - Simplified Playwright browser installation command to remove version specification, ensuring the latest version is installed with dependencies. - Enhanced the overall efficiency of the deployment process.
1 parent 034b07e commit d9d4e78

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,9 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-node-
3636
- name: Install dependencies
37-
run: |
38-
rm -f package-lock.json
39-
npm install
37+
run: npm ci
4038
- name: Install Playwright browsers
41-
run: |
42-
echo "Installing Playwright browsers..."
43-
npx playwright@1.40.1 install --with-deps
44-
echo "Verifying installation..."
45-
ls -la node_modules/.cache/ms-playwright/ || echo "No playwright cache found in node_modules"
39+
run: npx playwright install --with-deps
4640
- name: Run tests
4741
run: npm test
4842
test_win:
@@ -66,12 +60,10 @@ jobs:
6660
restore-keys: |
6761
${{ runner.os }}-node-
6862
- name: Install dependencies
69-
run: |
70-
if (Test-Path package-lock.json) { del package-lock.json }
71-
npm install
63+
run: npm ci
7264
shell: pwsh
7365
- name: Install Playwright browsers
74-
run: npx playwright@1.40.1 install --with-deps
66+
run: npx playwright install --with-deps
7567
- name: Run tests
7668
run: npm test
7769
tag:

0 commit comments

Comments
 (0)