| name | publishing-package |
| description | Analyzes git history to determine the next version, generates a changelog, commits changes, and publishes the package to npm. Use when the user asks to "publish" or "release" the package. |
Publishing Package
When to use this skill
- User asks to "publish package"
- User asks to "release new version"
- User mentions "npm publish"
Workflow
- Analyze Changes: The script checks commits since the last tag.
- Bump Version: Determines if it's a major, minor, or patch release (based on Conventional Commits) and runs
npm version.
- Update Changelog: Runs
maintaining-changelog skill to update CHANGELOG.md.
- Commit & Push: Commits the version bump and changelog, then pushes tags.
- Publish: Runs
npm publish.
Instructions
Run the following script:
node .agent/skills/publishing-package/scripts/publish.js
Resources