weegloo-npm-publish

Publishes the weegloo installer CLI to npm via a scripted release workflow with version bump commits.

1|2|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-npm-publish-weeglooapi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weegloo-npm-publish
Source: https://github.com/weeglooapi/weegloo-mcp-plugin/tree/main/.claude/skills/weegloo-npm-publish
Command: npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-npm-publish-weeglooapi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Publishing the weegloo npm package from installer-cli/ involves many error-prone steps — npm authentication, branch and dirty-tree checks, version comparison against the registry, tests, and the publish itself. This Skill delegates all deterministic work to a release script and guides the AI through the single human decision (which version bump) plus the post-publish version-bump commit. ## Core Features & Use Cases - Scripted preflight checks: Runs release.mjs preflight to verify NPM_TOKEN auth, branch state, and published-vs-current version, returning a BLOCKED, NEEDS_BUMP, or READY verdict. - Guided release decision: When versions match, asks the user to pick patch, minor, major, or a custom version — that choice doubles as publish approval; when already ahead, it publishes directly. - Safe token handling: Writes NPM_TOKEN only to a gitignored .env file, never echoes or commits secrets, and re-verifies with npm whoami. - Post-publish commit: Commits the package.json version bump (without pushing) so the repo never falls behind the npm registry. - Use Case: A maintainer says "버전 올리고 배포" — the Skill runs preflight, asks which bump, publishes to npm with the correct dist-tag, and commits the new version. ## Quick Start Ask the AI to publish a new release of the weegloo npm package from installer-cli and let it run the preflight, handle the version bump decision, publish, and commit the bump.

Frequently Asked Questions about weegloo-npm-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish the weegloo npm package from installer-cli?

Run node scripts/release.mjs preflight from installer-cli to check auth and version state, then run release with --bump and --yes to publish. The Skill drives this flow, asks which bump when needed, and commits the version change afterward.

How do I fix a missing or invalid NPM_TOKEN when publishing to npm?

Create a publish token (Granular Access or Automation) at npmjs.com settings, then add it as NPM_TOKEN in a gitignored .env file. Re-run preflight so npm whoami verifies the token before publishing.

What happens if the npm registry version is ahead of my local package.json?

The preflight returns BLOCKED and the publish stops to avoid overwriting a newer registry release. You must reconcile the local version with the registry before attempting to publish again.

Does the release script run tests before npm publish?

Yes, npm test runs inside the release command and aborts before publishing if tests fail, so nothing ships on a red build. You can skip tests explicitly with the --no-tests flag.

Does the skill push the version bump commit to the remote repository?

No, it only commits the package.json and package-lock.json version bump locally. Pushing remains the user's decision after verifying the branch and remote.