npm-publisher

This skill provides a complete workflow for publishing npm packages with automated CI/CD. It handles version bumping, git tagging, and triggering automated npm publishing through GitHub Actions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "npm-publisher" with this command: npx skills add klaudworks/universal-skills/klaudworks-universal-skills-npm-publisher

NPM Publisher

Overview

This skill provides a complete workflow for publishing npm packages with automated CI/CD. It handles version bumping, git tagging, and triggering automated npm publishing through GitHub Actions.

Release Workflow

Follow this workflow when releasing a new version with unstaged changes:

Step 1: Stage All Changes

Stage all pending changes:

git add .

Step 2: Commit the Changes

Commit with a meaningful message describing what changed:

git commit -m "$(cat <<'EOF' <Description of changes>

<Optional: more details> EOF )"

Important: Never add attributions to a coding agent in commit messages.

Step 3: Determine Version Type

Ask the user which type of version bump is appropriate, or infer from the changes:

  • patch - Bug fixes (3.0.2 → 3.0.3)

  • minor - New features (3.0.3 → 3.1.0)

  • major - Breaking changes (3.1.0 → 4.0.0)

If unclear, analyze the git diff to determine the appropriate version type based on:

  • Bug fixes only → patch

  • New features without breaking changes → minor

  • Breaking changes or major refactors → major

Step 4: Bump Version

Bump the version using npm:

npm version <patch|minor|major>

This command will:

  • Increment the version in package.json

  • Create a git commit with the version bump

  • Create a git tag (e.g., v3.0.3)

Step 5: Push Commits and Tags

Push both commits and tags to the remote repository:

git push && git push --tags

Step 6: Verify Publishing

After pushing, publishing happens automatically through CI/CD:

  • GitHub Actions automatically publishes to npm when a new tag is pushed

  • Wait approximately 30 seconds for CI to complete

  • Verify the release succeeded:

gh run list --limit 1

Step 7: Test the New Version

After CI completes successfully, verify the published version:

Clear npx cache if needed

npx clear-npx-cache

Test the new version (replace 'universal-skills' with the actual package name)

npx <package-name> --version

Error Handling

Common Issues

Uncommitted changes error:

  • Ensure all changes are committed before running npm version

  • Use git status to check for uncommitted changes

Push rejected:

  • Pull latest changes with git pull --rebase

  • Resolve any conflicts

  • Retry the push

CI/CD failure:

  • Check GitHub Actions logs: gh run view --log

  • Common causes: failing tests, missing credentials, npm registry issues

  • Fix the issue and create a new patch release if needed

Version already exists:

  • Check if the version was already published: npm view <package-name> versions

  • Bump to the next version if needed

Best Practices

  • Always review changes before publishing with git status and git diff

  • Run tests before publishing to catch issues early

  • Write meaningful commit messages that explain the "why" not just the "what"

  • Use semantic versioning consistently to manage user expectations

  • Verify the release by testing the published package

Pre-Release Checklist

Before starting the release workflow, ensure:

  • All tests pass

  • Build succeeds without errors

  • Breaking changes are documented

  • Dependencies are up to date

  • No sensitive information in commits

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated