Skip to content

Commit b8fae11

Browse files
committed
re-generate top commons
1 parent c13bb85 commit b8fae11

4 files changed

Lines changed: 100 additions & 49 deletions

File tree

.github/workflows/keepalive.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# -----------------------------------------------------------------------------
2+
#
3+
# This file is part of the xPack project (http://xpack.github.io).
4+
# Copyright (c) 2025-2026 Liviu Ionescu. All rights reserved.
5+
#
6+
# Permission to use, copy, modify, and/or distribute this software
7+
# for any purpose is hereby granted, under the terms of the MIT license.
8+
#
9+
# If a copy of the license was not distributed with this file, it can
10+
# be obtained from https://opensource.org/licenses/mit.
11+
#
12+
# -----------------------------------------------------------------------------
13+
14+
name: 'Keep Alive'
15+
16+
on:
17+
schedule:
18+
- cron: '0 0 1 * *' # Monthly on the 1st at midnight UTC
19+
workflow_dispatch:
20+
21+
jobs:
22+
keepalive:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Update keepalive timestamp
31+
run: |
32+
# Check if there are any commits in the last 30 days
33+
last_commit_date=$(git log -1 --format=%ct)
34+
current_date=$(date +%s)
35+
days_since_commit=$(( (current_date - last_commit_date) / 86400 ))
36+
37+
if [ $days_since_commit -lt 30 ]; then
38+
echo "Repository has commits within the last 30 days (${days_since_commit} days ago). Skipping keepalive update."
39+
exit 0
40+
fi
41+
42+
echo "No commits in the last ${days_since_commit} days. Updating keepalive timestamp."
43+
echo "Last keepalive: $(date -u)" > .github/keepalive
44+
git config --local user.email "action@github.com"
45+
git config --local user.name "GitHub Action"
46+
git add .github/keepalive
47+
if git diff --staged --quiet; then
48+
echo "No changes to commit"
49+
else
50+
git commit -m "chore: update keepalive timestamp [skip ci]"
51+
52+
# Push to the default branch (xpack)
53+
git push
54+
55+
# Merge into xpack-development branch if it exists
56+
if git ls-remote --heads origin xpack-development | grep -q xpack-development; then
57+
echo "Merging keepalive update into xpack-development branch"
58+
current_branch=$(git rev-parse --abbrev-ref HEAD)
59+
git fetch origin xpack-development
60+
git checkout xpack-development
61+
git merge --no-edit ${current_branch}
62+
git push origin xpack-development
63+
git checkout ${current_branch}
64+
else
65+
echo "xpack-development branch does not exist, skipping merge"
66+
fi
67+
fi

.github/workflows/publish-github-pages.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ on:
3434
# ... any of these files changes ...
3535
paths:
3636
- 'website/**'
37-
- 'typedoc.json'
3837
- '**/tsconfig*.json'
3938
- 'src/**/*.ts'
4039
- 'README.md'
@@ -53,30 +52,29 @@ permissions:
5352
# Allow one concurrent deployment.
5453
# https://docs.github.com/en/actions/using-jobs/using-concurrency
5554
concurrency:
56-
group: "pages"
55+
group: 'pages'
5756
cancel-in-progress: true
5857

5958
jobs:
6059
# Single deploy job since we're just deploying.
61-
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
6260
deploy:
6361
environment:
6462
name: github-pages
6563
url: ${{steps.deployment.outputs.page_url}}
66-
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
64+
# https://github.com/actions/runner-images
6765
runs-on: ubuntu-24.04
6866

6967
steps:
7068
- name: Checkout
7169
# https://github.com/actions/checkout
72-
uses: actions/checkout@v5
70+
uses: actions/checkout@v6.0.1
7371
with:
7472
# The full history, required to compute lastUpdatedAt
7573
fetch-depth: 0
7674

7775
- name: Use Nodejs
7876
# https://github.com/actions/setup-node
79-
uses: actions/setup-node@v5
77+
uses: actions/setup-node@v6.2.0
8078
with:
8179
# Node LTS version.
8280
node-version: 20
@@ -89,13 +87,13 @@ jobs:
8987

9088
- name: Setup Pages
9189
# https://github.com/actions/configure-pages
92-
uses: actions/configure-pages@v5
90+
uses: actions/configure-pages@v5.0.0
9391

9492
- name: Upload Pages artifact
9593
# https://github.com/actions/upload-pages-artifact
96-
uses: actions/upload-pages-artifact@v4
94+
uses: actions/upload-pages-artifact@v4.0.0
9795
with:
98-
# Upload entire repository
96+
# Upload entire website
9997
path: './website/build'
10098

10199
- name: Deploy to GitHub Pages

.npmignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,10 @@ LICENSE-*
5959
CONTRIBUTING**
6060
NOTES.md
6161

62-
*.ts
63-
lib/**/*.ts
64-
# The above removes all TypeScript including the .d.ts files.
65-
# Bring those later back.
66-
!*.d.ts
67-
!lib/*.d.ts
68-
6962
**/tsconfig*.json
7063
typedoc.json
7164
tsconfig.tsbuildinfo
72-
src/
65+
7366
xpacks/
7467
node_modules/
7568
docs/
@@ -89,8 +82,13 @@ wrappers/
8982
extras/
9083
inspiration/
9184
maintenance-scripts/
85+
config
9286

9387
.prettierignore
88+
.prettierrc.json
89+
90+
.taprc
91+
9492
api-extractor.json
9593
eslint.config.js
9694

.vscode/settings.json

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
11
{
2-
"editor.tabSize": 2,
3-
"cSpell.ignoreWords": [
4-
"Ionescu",
5-
"Liviu",
6-
"RPATH",
7-
"Wunguarded",
8-
"autogen",
9-
"automake",
10-
"caffeinate",
11-
"cleanup",
12-
"errexit",
13-
"fmtutil",
14-
"gnutls",
15-
"guille",
16-
"ilegeul",
17-
"incorectly",
18-
"luajithbtex",
19-
"luajittex",
20-
"mfluajit",
21-
"mktexlsr",
22-
"mmacosx",
23-
"mtxrun",
24-
"objc",
25-
"patchelf",
26-
"posix",
27-
"postactions",
28-
"realpath",
29-
"texlive",
30-
"texmf",
31-
"unsetting",
32-
"xpack"
33-
]
2+
"editor.detectIndentation": false,
3+
"editor.insertSpaces": true,
4+
"editor.tabSize": 2,
5+
"editor.formatOnSave": true,
6+
"files.associations": { "*.json": "jsonc" },
7+
"editor.stablePeek": true,
8+
"files.watcherExclude": {
9+
"**/.git/**": true,
10+
"**/node_modules/*/**": true,
11+
"**/build/**": true
12+
},
13+
"markdownlint.config": {
14+
"MD041": false
15+
},
16+
"spellright.language": [
17+
"en_GB"
18+
],
19+
"spellright.notificationClass": "warning",
20+
"cSpell.language": "en-GB",
21+
"cSpell.ignoreWords": []
3422
}

0 commit comments

Comments
 (0)