You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "::error::Tag $TAG does not match package.json version $PKG. Re-run the 'Bump version' workflow instead of tagging by hand."
51
+
exit 1
52
+
fi
53
+
- name: Publish to npm (with provenance)
54
+
if: env.HAS_NPM_TOKEN == 'true'
55
+
run: npm publish --provenance --access public
30
56
env:
31
57
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58
+
- name: Skip npm publish (NPM_TOKEN not set)
59
+
if: env.HAS_NPM_TOKEN != 'true'
60
+
run: |
61
+
echo "::warning::NPM_TOKEN secret is not set — SKIPPING npm publish. The GitHub Release is still created. To publish, add an npm Automation token as the NPM_TOKEN repo secret (Settings -> Secrets and variables -> Actions) and re-run this workflow. See docs/RELEASING.md."
Copy file name to clipboardExpand all lines: .github/workflows/repo-settings.yml
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,18 @@
3
3
#
4
4
# NOTE: editing repo settings needs an ADMIN-scoped token. The default GITHUB_TOKEN
5
5
# cannot be granted `administration`, so add a fine-grained PAT (Administration: write,
6
-
# Metadata: read) as the repo secret ADMIN_TOKEN. Without it the job will 403 — in that
7
-
# case just run the two `gh` commands below locally once (they need no workflow):
6
+
# Metadata: read) as the repo secret ADMIN_TOKEN. Without it the job SKIPS with a
7
+
# warning (soft fail) — in that case just run the two `gh` commands below locally once
8
+
# (they need no workflow):
8
9
#
9
10
# gh repo edit CodeWithJuber/forgekit \
10
11
# --description "One config for every AI coding agent — cross-tool config + a cognitive substrate (memory, blast-radius, guardrails) for Claude Code, Codex, Cursor, Gemini, Aider, and more." \
echo "::warning::ADMIN_TOKEN secret is not set — skipping. Editing repo settings needs a fine-grained PAT (Administration: write, Metadata: read) saved as the ADMIN_TOKEN repo secret; the default GITHUB_TOKEN cannot be granted 'administration'. Alternatively run the gh commands from this workflow's header comment locally."
38
+
exit 0
39
+
fi
33
40
set -e
41
+
# 19 topics (GitHub caps at 20): discoverability terms first, project-specific last.
34
42
gh repo edit "$REPO" \
35
43
--description "One config for every AI coding agent — cross-tool config + a cognitive substrate (memory, blast-radius, guardrails) for Claude Code, Codex, Cursor, Gemini, Aider, and more." \
0 commit comments