home / skills / autumnsgrove / groveengine / npm-publish
This skill publishes @autumnsgrove/groveengine to npm by swapping registries, building, publishing, and reverting settings to maintain GitHub Packages.
npx playbooks add skill autumnsgrove/groveengine --skill npm-publishReview the files below or copy the command above to add this skill to your agents.
No content availableThis skill publishes @autumnsgrove/groveengine to the public npm registry while preserving GitHub Packages as the default registry for the repository. It implements a safe registry-swap workflow: switch to npm for publishing, build and publish, then switch the publishConfig back to GitHub Packages. Use it when releasing a new engine version to ensure correct registry, access, and commits.
The skill updates packages/engine/package.json to bump the version and temporarily replace publishConfig with the npm registry and public access. It runs the package build, executes npm publish --access public, then restores the publishConfig back to the GitHub Packages registry. Finally it commits the version bump and pushes the change to the remote to keep the repository consistent.
What if npm asks for a one-time password (OTP)?
Create a granular npm token with "Bypass 2FA" enabled and set it with npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN.
I accidentally committed the npm registry change. How do I fix it?
Edit publishConfig back to GitHub, git add the file, then git commit --amend --no-edit and git push --force-with-lease to correct history.