From 42fcc204607ae51e5605d1fbeca8530161136dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sun, 4 Oct 2026 21:07:23 -0400 Subject: [PATCH] CI: update-stars, clear of pnpm's own stars; packageManager pins pnpm Co-Authored-By: Claude Opus 5.5 --- .github/workflows/catalog.yml | 6 +----- README.md | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/catalog.yml b/.github/workflows/catalog.yml index b389c37..e5f7b7d 100644 --- a/.github/workflows/catalog.yml +++ b/.github/workflows/catalog.yml @@ -24,8 +24,6 @@ jobs: with: persist-credentials: false - uses: pnpm/action-setup@v6 - with: - version: 11 - uses: actions/setup-node@v7 with: node-version: 24 @@ -45,14 +43,12 @@ jobs: with: ref: main - uses: pnpm/action-setup@v6 - with: - version: 11 - uses: actions/setup-node@v7 with: node-version: 24 cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm stars + - run: pnpm run update-stars env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pnpm validate diff --git a/README.md b/README.md index 1fbe23f..f985315 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Unknown fields fail validation. ## Stars -On every push to `main` and each Monday, CI asks GitHub for each GitHub source's stars and commits any change. `starsUpdatedAt` moves only when the count does. `pnpm stars` does the same locally with `GITHUB_TOKEN` set. +On every push to `main` and each Monday, CI asks GitHub for each GitHub source's stars and commits any change. `starsUpdatedAt` moves only when the count does. `pnpm run update-stars` does the same locally with `GITHUB_TOKEN` set. ## How the site uses this diff --git a/package.json b/package.json index 588dcc1..cead3a9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "node --test \"tests/*.test.mjs\"", "validate": "node scripts/validate.mjs", - "stars": "node scripts/stars.mjs" + "update-stars": "node scripts/stars.mjs" }, "dependencies": { "marked": "18.0.14",