Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,19 @@ jobs:
exit 1

- name: Checkout canonical source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm

- name: Report toolchain
run: node --version && npm --version

- name: Validate registry, tests, and generated README
run: npm run check:contributors

Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
uses: actions/setup-node@v7
with:
node-version: 20
node-version-file: .nvmrc
cache: npm

- name: Report toolchain
run: node --version && npm --version

- name: Setup Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4
uses: actions/configure-pages@v4

- name: Install dependencies
run: npm install --frozen-lockfile
run: npm ci

- name: Build VitePress site
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist

Expand All @@ -53,4 +56,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
uses: actions/deploy-pages@v4
15 changes: 12 additions & 3 deletions .github/workflows/reconcile-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Create short-lived target token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
uses: actions/create-github-app-token@v3
with:
client-id: ${{ inputs.app-client-id }}
private-key: ${{ secrets.app-private-key }}
Expand All @@ -82,7 +82,7 @@ jobs:
run: gh api "repos/humanbydefinition/$TARGET_REPOSITORY/branches/dev" --silent

- name: Checkout target dev branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@v6
with:
repository: humanbydefinition/${{ inputs.target-repository }}
ref: dev
Expand All @@ -91,18 +91,27 @@ jobs:
token: ${{ steps.app-token.outputs.token }}

- name: Checkout canonical contributor source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@v6
with:
repository: humanbydefinition/code.textmode.art
ref: ${{ inputs.source-ref }}
sparse-checkout: |
.nvmrc
.vitepress/data/contribution-types.json
.vitepress/data/contributors.json
scripts/contributors.mjs
sparse-checkout-cone-mode: false
path: contributor-source
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v7
with:
node-version-file: contributor-source/.nvmrc

- name: Report toolchain
run: node --version && npm --version

- name: Resolve canonical source
id: source
working-directory: contributor-source
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
{
"private": true,
"engines": {
"node": ">=24 <25"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "^24.0.0",
"onFail": "error"
},
"packageManager": {
"name": "npm",
"version": "^11.0.0",
"onFail": "error"
}
},
"devDependencies": {
"@codesandbox/sandpack-themes": "^2.0.21",
"@types/node": "^24.10.1",
Expand Down