Spaces:
Running
Running
Commit ·
5dd79b5
1
Parent(s): f28f7a1
Document promote.mjs as the one-command staging->prod promotion
Browse filesGenerated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
.claude/skills/sync-nowai-leaderboard/SKILL.md
CHANGED
|
@@ -65,17 +65,31 @@ bundle, and pushes to `main`; add `--dry-run` to stop before the push.
|
|
| 65 |
## Promoting staging → prod
|
| 66 |
|
| 67 |
Promotion is a deliberate human step after reviewing both the HF staging page
|
| 68 |
-
**and** the regenerated `github-readme/README.md`.
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
`
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
## Tests
|
| 81 |
`cd .claude/skills/sync-nowai-leaderboard && node --test`
|
|
|
|
| 65 |
## Promoting staging → prod
|
| 66 |
|
| 67 |
Promotion is a deliberate human step after reviewing both the HF staging page
|
| 68 |
+
**and** the regenerated `github-readme/README.md`. One command does the two
|
| 69 |
+
pushes — HF prod Space, then the GitHub README:
|
| 70 |
+
|
| 71 |
+
1. **Preview (always first):**
|
| 72 |
+
`node .claude/skills/sync-nowai-leaderboard/promote.mjs --dry-run`
|
| 73 |
+
Runs every precondition and shows the exact commits + GitHub README diff.
|
| 74 |
+
Pushes nothing.
|
| 75 |
+
2. **Promote:**
|
| 76 |
+
`node .claude/skills/sync-nowai-leaderboard/promote.mjs`
|
| 77 |
+
Prompts for a typed `promote` confirmation, then pushes prod + publishes the
|
| 78 |
+
GitHub README. Use `--yes` only for non-interactive automation.
|
| 79 |
+
|
| 80 |
+
`promote.mjs` refuses to run unless: on `main`, worktree clean, local `main`
|
| 81 |
+
**exactly** in sync with `origin/main` (i.e. staging = what you reviewed),
|
| 82 |
+
`prod/main` is a fast-forward ancestor of HEAD, and `README.md` is
|
| 83 |
+
prod-canonical (`title: NowAI-Bench`, `colorFrom: indigo` — never the staging
|
| 84 |
+
`… Staging` / `red` values). It is **never** invoked by the daily sync.
|
| 85 |
+
|
| 86 |
+
Notes:
|
| 87 |
+
- Because `README.md` is kept prod-canonical in git, the prod push needs no
|
| 88 |
+
metadata swap. Staging branding is applied separately on the Space by
|
| 89 |
+
`scripts/push-staging.sh` and never committed.
|
| 90 |
+
- Publishing the GitHub README requires push access to `ServiceNow/NOWAI-Bench`
|
| 91 |
+
(`bradnow` is an admin; `main` is unprotected). To publish it alone, use
|
| 92 |
+
`render-readme.mjs --publish` (`--dry-run` to preview).
|
| 93 |
|
| 94 |
## Tests
|
| 95 |
`cd .claude/skills/sync-nowai-leaderboard && node --test`
|