Skip to content

Commit 89e213d

Browse files
committed
chore: update dependencies and streamline deployment workflow
- Upgraded several dependencies in package.json and package-lock.json, including @api-components/api-method-documentation to version 5.2.30 and @api-components/api-navigation to version 4.3.20 for improved features and compatibility. - Updated @commitlint packages to version 13.x for better linting capabilities. - Simplified the deployment workflow by using actions/setup-node@v1 and optimizing npm caching strategy for faster installations. - Adjusted Playwright browser installation to ensure consistency across environments.
1 parent f89321d commit 89e213d

3 files changed

Lines changed: 1341 additions & 931 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 29 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -21,58 +21,38 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- uses: actions/checkout@v2
24-
- name: Setup Node.js
25-
uses: actions/setup-node@v3
24+
- uses: actions/setup-node@v1
2625
with:
27-
node-version: '18'
28-
cache: 'npm'
29-
- name: Cache Playwright browsers
30-
uses: actions/cache@v3
31-
id: playwright-cache
26+
node-version: 18
27+
- uses: actions/cache@v3
3228
with:
33-
path: ~/.cache/ms-playwright
34-
key: ${{ runner.os }}-playwright-1.57.0
29+
path: ~/.npm
30+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3531
restore-keys: |
36-
${{ runner.os }}-playwright-
37-
- name: Verify npm cache
38-
run: npm cache verify || npm cache clean --force
32+
${{ runner.os }}-node-
3933
- name: Install dependencies
40-
run: npm ci
41-
- name: Install Playwright browsers
34+
run: npm install
35+
- name: Install Playwright Browsers
4236
run: npx playwright install --with-deps
43-
- name: Verify Playwright browsers installation
44-
run: ls -la ~/.cache/ms-playwright/ || echo "No playwright cache found"
4537
- name: Run tests
4638
run: npm test
4739
test_win:
4840
name: "Windows"
49-
strategy:
50-
fail-fast: false
51-
matrix:
52-
os: [windows-latest]
53-
runs-on: ${{ matrix.os }}
41+
runs-on: windows-latest
5442
steps:
5543
- uses: actions/checkout@v2
56-
- name: Setup Node.js
57-
uses: actions/setup-node@v3
44+
- uses: actions/setup-node@v1
5845
with:
59-
node-version: '18'
60-
cache: 'npm'
61-
- name: Cache Playwright browsers
62-
uses: actions/cache@v3
63-
id: playwright-cache
46+
node-version: 18
47+
- uses: actions/cache@v3
6448
with:
65-
path: ~/.cache/ms-playwright
66-
key: ${{ runner.os }}-playwright-1.57.0
49+
path: ~/.npm
50+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
6751
restore-keys: |
68-
${{ runner.os }}-playwright-
69-
- name: Verify npm cache
70-
run: npm cache verify || npm cache clean --force
71-
shell: pwsh
52+
${{ runner.os }}-node-
7253
- name: Install dependencies
73-
run: npm ci
74-
shell: pwsh
75-
- name: Install Playwright browsers
54+
run: npm install
55+
- name: Install Playwright Browsers
7656
run: npx playwright install --with-deps
7757
- name: Run tests
7858
run: npm test
@@ -83,21 +63,24 @@ jobs:
8363
- test_linux
8464
- test_win
8565
runs-on: ubuntu-latest
66+
permissions:
67+
contents: write
8668
steps:
8769
- name: Checkout code
88-
uses: actions/checkout@v2
70+
uses: actions/checkout@v4
8971
with:
9072
fetch-depth: 0
91-
- name: Setup Node.js
92-
uses: actions/setup-node@v3
73+
- uses: actions/setup-node@v4
9374
with:
94-
node-version: '18'
95-
cache: 'npm'
75+
node-version: '18.x'
9676
registry-url: 'https://registry.npmjs.org'
97-
- name: Verify npm cache
98-
run: npm cache verify || npm cache clean --force
99-
- name: Install dependencies
100-
run: npm ci
77+
- uses: actions/cache@v3
78+
with:
79+
path: ~/.npm
80+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
81+
restore-keys: |
82+
${{ runner.os }}-node-
83+
- run: npm install
10184
- name: Read version from package.json
10285
uses: culshaw/read-package-node-version-actions@v1
10386
id: package-node-version

0 commit comments

Comments
 (0)