一键导入
npm-publish
Publish @autumnsgrove/groveengine to npm with proper registry swap workflow. Use when releasing a new version of the engine package to npm.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Publish @autumnsgrove/groveengine to npm with proper registry swap workflow. Use when releasing a new version of the engine package to npm.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Integrate external REST APIs with proper authentication, rate limiting, error handling, and caching patterns. Use when working with external APIs, building API clients, or fetching data from third-party services.
Deploy and manage Cloudflare Workers, Pages, KV, R2, and D1 using wrangler CLI or MCP server. Use when working with Cloudflare services, serverless functions, or edge deployments.
Execute git operations using Conventional Commits format with proper branching strategies and safe workflows. Use when making commits, managing branches, or performing git operations.
Write documentation, help articles, specs, and user-facing text in the authentic Grove voice. Use when writing any text that users will read, updating help center content, or drafting specs. Ensures warmth, clarity, and avoidance of AI patterns.
Write and validate Grove technical specifications with consistent formatting, ASCII art headers, diagrams, and the Grove voice. Use when creating new specs, reviewing existing specs for completeness, or standardizing spec formatting.
Write effective, maintainable tests that catch real bugs and enable confident refactoring. Use when deciding what to test, reviewing test quality, or writing tests for Grove features. Focuses on philosophy and strategy—pair with javascript-testing for implementation details.
| name | npm-publish |
| description | Publish @autumnsgrove/groveengine to npm with proper registry swap workflow. Use when releasing a new version of the engine package to npm. |
| user_invocable | true |
Publish @autumnsgrove/groveengine to npm while keeping the default registry as GitHub Packages.
Activate this skill when:
CRITICAL: The package.json uses GitHub Packages by default. You MUST swap to npm, publish, then swap BACK.
1. Bump version in packages/engine/package.json
2. Swap publishConfig to npm registry
3. Build the package
4. Publish to npm
5. Swap publishConfig BACK to GitHub Packages
6. Commit the version bump
7. Push to remote
Edit packages/engine/package.json:
"version": "X.Y.Z", // Increment appropriately
Use semantic versioning:
BEFORE (GitHub Packages - default):
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
AFTER (npm - for publishing):
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
cd /Users/autumn/Documents/Projects/GroveEngine/packages/engine
pnpm run package
npm publish --access public
The prepublishOnly script runs pnpm run package automatically, so this may rebuild.
Verify success with:
+ @autumnsgrove/groveengine@X.Y.Z
CRITICAL - DO NOT FORGET THIS STEP
Change packages/engine/package.json back to:
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
cd /Users/autumn/Documents/Projects/GroveEngine
git add packages/engine/package.json
git commit -m "chore: bump version to X.Y.Z"
git push origin main
# From project root:
# 1. Edit version in packages/engine/package.json
# 2. Edit publishConfig to npm registry
# 3. Build and publish
cd packages/engine
pnpm run package
npm publish --access public
# 4. Edit publishConfig back to GitHub
# 5. Commit and push (from project root)
git add packages/engine/package.json
git commit -m "chore: bump version to X.Y.Z"
git push origin main
After publishing, verify on npm:
npm view @autumnsgrove/groveengine version
Or visit: https://www.npmjs.com/package/@autumnsgrove/groveengine
npm error code EOTP
npm error This operation requires a one-time password
Solution: Create a granular access token with "Bypass 2FA" enabled:
npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKENSee AgentUsage/npm_publish.md for detailed token setup.
npm error 403 - You cannot publish over the previously published versions
Solution: You forgot to bump the version. Increment it and try again.
If you accidentally committed with npm registry, fix it:
# Edit publishConfig back to GitHub
git add packages/engine/package.json
git commit --amend --no-edit
git push --force-with-lease origin main
| Registry | publishConfig |
|---|---|
| GitHub (default) | "registry": "https://npm.pkg.github.com" |
| npm (for publish) | "registry": "https://registry.npmjs.org", "access": "public" |
Before starting:
During publish:
+ @autumnsgrove/groveengine@X.Y.Z)AgentUsage/npm_publish.md - Token setup and 2FA workaroundpackages/engine/package.json - Package configuration