Skip to content

Commit 1bc4e81

Browse files
authored
chore: release prep for v1.1.5 (#6)
1 parent 8ff6952 commit 1bc4e81

File tree

11 files changed

+297
-182
lines changed

11 files changed

+297
-182
lines changed

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

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,19 @@ on:
1313

1414
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1515
permissions:
16+
actions: read
1617
contents: read
1718
pages: write
1819
id-token: write
1920

2021
# Allow one concurrent deployment
2122
concurrency:
22-
group: 'build-and-publish'
23+
group: 'pages'
2324
cancel-in-progress: true
2425

2526
jobs:
2627
check-codeql:
27-
name: Check CodeQL Analysis
28-
runs-on: ubuntu-24.04
29-
# Continue workflow even if this job fails due to inability to find and/or check CodeQL workflow
30-
continue-on-error: true
31-
32-
steps:
33-
- name: Checkout repository
34-
uses: actions/checkout@v4
35-
36-
- name: Set up GitHub CLI
37-
run: sudo apt-get install gh
38-
39-
- name: Check CodeQL Workflow
40-
env:
41-
GH_TOKEN: ${{ secrets.NWPRO_ACTION }}
42-
run: |
43-
gh run list --workflow "CodeQL" --json conclusion --jq '.[0].conclusion' > codeql_status.txt
44-
CODEQL_STATUS=$(cat codeql_status.txt)
45-
if [[ "$CODEQL_STATUS" != "success" ]]; then
46-
echo "CodeQL Analysis did not succeed. Exiting..."
47-
exit 1
48-
fi
49-
rm codeql_status.txt
28+
uses: ./.github/workflows/check-codeql.yml
5029

5130
build:
5231
needs: check-codeql
@@ -61,11 +40,15 @@ jobs:
6140
- name: Set up Node.js
6241
uses: actions/setup-node@v4
6342
with:
64-
node-version: lts/*
65-
check-latest: true
43+
node-version: 24
6644
cache: npm
6745
cache-dependency-path: package-lock.json
6846

47+
- name: Upgrade npm
48+
run: |
49+
corepack enable
50+
npm install -g npm@11.4.2
51+
6952
- name: Setup Pages
7053
uses: actions/configure-pages@v5
7154

@@ -78,18 +61,8 @@ jobs:
7861
with:
7962
python-version: '3.13'
8063

81-
- name: Install MkDocs and plugins
82-
run: |
83-
pip install mkdocs mkdocs-material mkdocs-material-extensions mkdocs-get-deps
84-
85-
- name: Freeze Python dependencies (for diagnostics)
86-
run: pip freeze > freeze.txt
87-
88-
- name: Upload pip freeze snapshot
89-
uses: actions/upload-artifact@v4
90-
with:
91-
name: pip-freeze-ci
92-
path: freeze.txt
64+
- name: Install Python dependencies
65+
run: pip install -r requirements.txt
9366

9467
# Strict mode disabled for mkdocs-material
9568
- name: Build MkDocs documentation

.github/workflows/check-codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# .github/workflows/check-codeql.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: CodeQL Status Check
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
13+
on:
14+
workflow_call:
15+
16+
jobs:
17+
check:
18+
name: Check CodeQL Status
19+
runs-on: ubuntu-24.04
20+
21+
steps:
22+
- name: Check CodeQL Workflow
23+
env:
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: |
26+
gh --version
27+
28+
if ! gh run list --repo "${GITHUB_REPOSITORY}" --workflow "CodeQL" --limit 1 --json conclusion --jq '.[0].conclusion' > codeql_status.txt; then
29+
echo "::error title=CodeQL Check Failed::Could not retrieve CodeQL run status. Blocking deployment."
30+
exit 1
31+
fi
32+
33+
CODEQL_STATUS=$(cat codeql_status.txt)
34+
echo "CodeQL status: $CODEQL_STATUS"
35+
if [[ "$CODEQL_STATUS" != "success" ]]; then
36+
echo "::error title=CodeQL Check Failed::Latest CodeQL run did not succeed. Blocking deployment."
37+
exit 1
38+
fi
39+
40+
rm -f codeql_status.txt

.github/workflows/publish.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ jobs:
3737
- name: Set up Node.js
3838
uses: actions/setup-node@v4
3939
with:
40-
node-version: lts/*
41-
check-latest: true
40+
node-version: 24
4241
cache: npm
4342
cache-dependency-path: package-lock.json
4443

44+
- name: Upgrade npm
45+
run: |
46+
corepack enable
47+
npm install -g npm@11.4.2
48+
4549
- name: Install Node.js dependencies
4650
run: npm ci
4751

@@ -51,9 +55,8 @@ jobs:
5155
with:
5256
python-version: '3.13'
5357

54-
- name: Install MkDocs and plugins
55-
run: |
56-
pip install mkdocs mkdocs-material mkdocs-material-extensions mkdocs-get-deps
58+
- name: Install Python dependencies
59+
run: pip install -r requirements.txt
5760

5861
- name: Build MkDocs documentation
5962
run: mkdocs build
@@ -83,11 +86,15 @@ jobs:
8386
- name: Set up Node.js for npmjs
8487
uses: actions/setup-node@v4
8588
with:
86-
node-version: lts/*
87-
check-latest: true
89+
node-version: 24
8890
registry-url: https://registry.npmjs.org/
8991
cache: npm
9092

93+
- name: Upgrade npm
94+
run: |
95+
corepack enable
96+
npm install -g npm@11.4.2
97+
9198
- name: Set up Git user
9299
run: |
93100
git config --global user.email "github@sl.neteng.cc"
@@ -112,11 +119,15 @@ jobs:
112119
- name: Set up Node.js for GPR
113120
uses: actions/setup-node@v4
114121
with:
115-
node-version: lts/*
116-
check-latest: true
122+
node-version: 24
117123
registry-url: https://npm.pkg.github.com/
118124
cache: npm
119125

126+
- name: Upgrade npm
127+
run: |
128+
corepack enable
129+
npm install -g npm@11.4.2
130+
120131
- name: Set up Git user
121132
run: |
122133
git config --global user.email "github@sl.neteng.cc"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ pyrightconfig.json
328328
!.vscode/tasks.json
329329
!.vscode/launch.json
330330
!.vscode/extensions.json
331+
!.vscode/customData.json
331332
!.vscode/*.code-snippets
332333

333334
# Local History for Visual Studio Code

.npmrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vscode/customData.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"version": 1,
3+
"selectors": [
4+
{
5+
"name": ".fas",
6+
"description": "FontAwesome v6 solid icon class"
7+
},
8+
{
9+
"name": ".fa-solid",
10+
"description": "FontAwesome old solid icon class"
11+
},
12+
{
13+
"name": ".fab",
14+
"description": "FontAwesome v6 brand icon class"
15+
},
16+
{
17+
"name": ".fa-brands",
18+
"description": "FontAwsome old brand icon class"
19+
},
20+
{
21+
"name": ".fa-square-instagram",
22+
"description": "FontAwesome brands Instagram icon class"
23+
},
24+
{
25+
"name": ".fa-square-github",
26+
"description": "FontAwesome brands GitHub icon class"
27+
},
28+
{
29+
"name": ".fa-linkedin",
30+
"description": "FontAwesome brands LinkedIn icon class"
31+
},
32+
{
33+
"name": ".fa-square-facebook",
34+
"description": "FontAwesome brands Facebook icon class"
35+
},
36+
{
37+
"name": ".fa-mastodon",
38+
"description": "FontAwesome brands Pinterest icon class"
39+
},
40+
{
41+
"name": ".fa-arrow-up-right",
42+
"description": "FontAwesome arrow up right icon class"
43+
},
44+
{
45+
"name": ".fa-arrow-up-right-from-square",
46+
"description": "FontAwesome arrow up right from square icon class"
47+
},
48+
{
49+
"name": ".fa-2x",
50+
"description": "FontAwesome 2x extra large icon size class"
51+
},
52+
{
53+
"name": ".fa-lg",
54+
"description": "FontAwesome large icon size class"
55+
},
56+
{
57+
"name": ".fa-sm",
58+
"description": "FontAwesome small icon size class"
59+
},
60+
{
61+
"name": ".fa-xs",
62+
"description": "FontAwesome extra small icon size class"
63+
},
64+
{
65+
"name": ".fa-2xs",
66+
"description": "FontAwesome 2x extra small icon size class"
67+
}
68+
]
69+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
66
This file is part of Network Pro.
77
====================================================================== -->
88

9-
<sup>[SPDX-License-Identifier](https://spdx.dev/learn/handling-license-info/):
10-
`CC-BY-4.0 OR GPL-3.0-or-later`</sup>
9+
[SPDX-License-Identifier](https://spdx.dev/learn/handling-license-info/):
10+
`CC-BY-4.0 OR GPL-3.0-or-later`
1111

1212
<a name="top"></a>
1313

0 commit comments

Comments
 (0)