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
24 changes: 24 additions & 0 deletions .github/workflows/validate-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,27 @@ jobs:
ET.parse(path)
print(f"Validated {len(files)} nuspec file(s)")
PY

# src/data/directory/directory.json is generated from the package
# manifests but committed to the repo, so it can silently go stale when a
# manifest is bumped without re-running the generator — which is how the
# site kept advertising paranoid-passwd 3.6.5 after it had shipped 3.7.0.
# Regenerate and fail if the committed copy differs.
- name: Set up Node
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version-file: ".nvmrc"

- name: Check generated directory.json is up to date
shell: bash
run: |
set -euo pipefail
corepack enable
pnpm install --frozen-lockfile
node scripts/generate-directory.mjs
if ! git diff --quiet -- src/data/directory/directory.json; then
echo "::error::src/data/directory/directory.json is stale. Run 'node scripts/generate-directory.mjs' and commit the result."
git --no-pager diff -- src/data/directory/directory.json
exit 1
fi
echo "directory.json is in sync with the package manifests"
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@rgrove/parse-xml": "^4.2.2",
"@tailwindcss/vite": "^4.3.3",
"@types/node": "^26.1.1",
"@vercel/og": "^0.11.1",
"astro": "^5.18.2",
"astro-color-scheme": "^1.1.5",
"nanostores": "^1.4.0",
Expand Down
Loading
Loading