@networkpro/web 1.26.4 → 1.26.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ # .github/workflows/deploy-audit-netlify.yml
2
+ #
3
+ # Copyright © 2025 Network Pro Strategies (Network Pro™)
4
+ # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ # This file is part of Network Pro
6
+
7
+ name: Deploy Audit to Netlify
8
+
9
+ on:
10
+ push:
11
+ branches:
12
+ - audit-netlify
13
+ workflow_dispatch: {}
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ deploy:
20
+ runs-on: ubuntu-24.04
21
+ env:
22
+ ENV_MODE: audit
23
+ PUBLIC_ENV_MODE: audit
24
+
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+
28
+ - uses: actions/setup-node@v6
29
+ with:
30
+ node-version: 22
31
+ cache: npm
32
+ cache-dependency-path: package-lock.json
33
+
34
+ - name: Install Dependencies
35
+ run: npm ci
36
+
37
+ - name: Build in Audit Mode
38
+ run: npm run build:audit
package/CHANGELOG.md CHANGED
@@ -24,6 +24,20 @@ version increments reflecting both user-visible and operational impact.
24
24
 
25
25
  ---
26
26
 
27
+ ## [1.26.5]
28
+
29
+ ### Added
30
+
31
+ - `scripts/hooks/pre-push.sh`: `simple-git-hooks` pre-push guard to prevent accidental pushes directly to `master`/`main` while preserving the existing `npm run checkout` pre-push behavior.
32
+
33
+ ### Changed
34
+
35
+ - `.github/workflows/deploy-audit-netlify.yml`: Added `workflow_dispatch` so the audit Netlify deployment can be triggered manually (e.g., when `audit-netlify` is already in sync and no new push occurs).
36
+ - `package.json`: Updated `simple-git-hooks` configuration to run `bash scripts/hooks/pre-push.sh` on `pre-push` (alongside the existing `pre-commit` hook).
37
+ - Bumped project version to `v1.26.5`.
38
+
39
+ ---
40
+
27
41
  ## [1.26.4] - 2026-01-24
28
42
 
29
43
  ### Added
@@ -2311,7 +2325,8 @@ This enables analytics filtering and CSP hardening for the audit environment.
2311
2325
 
2312
2326
  <!-- Link references -->
2313
2327
 
2314
- [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.26.4...HEAD
2328
+ [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.26.5...HEAD
2329
+ [1.26.5]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.5
2315
2330
  [1.26.4]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.4
2316
2331
  [1.26.3]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.3
2317
2332
  [1.26.2]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@networkpro/web",
3
3
  "private": false,
4
- "version": "1.26.4",
4
+ "version": "1.26.5",
5
5
  "description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
6
6
  "keywords": [
7
7
  "advocacy",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "simple-git-hooks": {
88
88
  "pre-commit": "if [ \"$CI\" = \"true\" ]; then exit 0; else npm run lint:all; fi",
89
- "pre-push": "if [ \"$CI\" = \"true\" ]; then exit 0; else npm run checkout; fi"
89
+ "pre-push": "bash scripts/hooks/pre-push.sh"
90
90
  },
91
91
  "dependencies": {
92
92
  "dompurify": "^3.3.1",
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Copyright © 2025-2026 Network Pro Strategies (Network Pro™)
4
+ # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ # This file is part of Network Pro
6
+ set -e
7
+
8
+ # Don't run local hooks in CI
9
+ [ "${CI:-}" = "true" ] && exit 0
10
+
11
+ branch="$(git rev-parse --abbrev-ref HEAD)"
12
+ if [[ "$branch" == "master" || "$branch" == "main" ]]; then
13
+ echo "❌ Refusing to push directly to $branch (use a PR)."
14
+ exit 1
15
+ fi
16
+
17
+ # Existing behavior
18
+ npm run checkout