Skip to content

Commit 9415aab

Browse files
committed
Update workflows and correct .lighthouserc.mjs
1 parent 25860b9 commit 9415aab

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,20 @@ jobs:
6262
node-version: lts/*
6363
check-latest: true
6464
cache: npm
65-
66-
- name: Cache Node.js modules
67-
uses: actions/cache@v4
68-
with:
69-
path: ~/.npm
70-
key: ${{ runner.os }}-node-lts-${{ hashFiles('package-lock.json', 'package.json', '.npmrc') }}
71-
restore-keys: |
72-
${{ runner.os }}-node-lts-build-
73-
${{ runner.os }}-node-lts-
74-
${{ runner.os }}-
65+
cache-dependency-path: package-lock.json
7566

7667
- name: Install Node.js dependencies
7768
run: npm ci
7869

70+
# Test to ensure the package is working
7971
- name: Build Node.js project
8072
run: npm run build
8173

74+
# Remove build artifacts to avoid publishing them
8275
- name: Clean build directory
8376
run: rm -rf build/
8477

78+
# Upload clean source code
8579
- name: Upload repository artifacts
8680
uses: actions/upload-artifact@v4
8781
with:

.github/workflows/lighthouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
name: Lighthouse Audit
77

88
on:
9-
workflow_dispatch:
109
push:
1110
branches: [master]
1211
pull_request:
1312
branches: [master]
13+
workflow_dispatch:
1414

1515
# Sets permissions of the GITHUB_TOKEN to allow access to repo
1616
permissions:

.github/workflows/playwright.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,7 @@ jobs:
3434
node-version: lts/*
3535
check-latest: true
3636
cache: npm
37-
38-
- name: Cache Node.js modules
39-
uses: actions/cache@v4
40-
with:
41-
path: ~/.npm
42-
key: ${{ runner.os }}-node-lts-${{ hashFiles('package-lock.json', 'package.json', '.npmrc') }}
43-
restore-keys: |
44-
${{ runner.os }}-node-lts-build-
45-
${{ runner.os }}-node-lts-
46-
${{ runner.os }}-
37+
cache-dependency-path: package-lock.json
4738

4839
- name: Install Node.js dependencies
4940
run: npm ci

.lighthouserc.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const config = {
1717
upload: {
1818
target: "temporary-public-storage",
1919
},
20+
// Save local reports in both HTML and JSON
21+
output: ["html", "json"],
22+
outputPath: ".lighthouseci",
2023
},
2124
};
2225

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@networkpro/web",
33
"private": false,
44
"sideEffects": false,
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"description": "Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy — Network Pro Strategies",
77
"keywords": [
88
"security",

0 commit comments

Comments
 (0)