界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

publish

publish

【效率与协作】Publish a new version of the npm package

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: publish description: Publish a new version of the npm package disable-model-invocation: true

Publish NPM Package

1. Ask the user what version bump they want

  • patch (e.g. 3.2.0 → 3.2.1) - bug fixes
  • minor (e.g. 3.2.0 → 3.3.0) - new features
  • major (e.g. 3.2.0 → 4.0.0) - breaking changes

2. Bump the version

Run npm version patch, npm version minor, or npm version major based on the user's choice. This updates package.json and creates a git tag.

3. Tell the user to publish

Tell the user to run:

npm publish --access public

Do NOT run npm publish yourself. The user needs to authenticate with npm and must run this command manually.

我的收藏