From typescript-plugin
Publishes packages to npm registry after Bun build, with type checking, tarball verification, dry-run previews, scoped access handling, provenance signing, and post-publish details.
How this skill is triggered — by the user, by Claude, or both
Slash command
/typescript-plugin:bun-publishThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Publish package to npm registry after building with Bun.
Publish package to npm registry after building with Bun.
--dry-run: Preview publish without executing--access: Access level (public or restricted)--provenance: Enable supply chain provenance signingDetect package configuration:
cat package.json | jq '{name, version, publishConfig, bin, files, scripts: {prepublishOnly: .scripts.prepublishOnly}}'
# Type check
bun run tsc --noEmit 2>&1 | head -20
# Build
bun run build
# Verify tarball contents
npm pack --dry-run
Dry run (default for first attempt):
npm publish --dry-run {{ "--access " + ACCESS if ACCESS }}
Actual publish:
# Standard package
npm publish {{ "--access " + ACCESS if ACCESS }} {{ "--provenance" if PROVENANCE }}
# Scoped package (auto-detect from name starting with @)
npm publish --access public {{ "--provenance" if PROVENANCE }}
If package.json name starts with @:
--access public unless explicitly restrictedpublishConfig.access is not set in package.jsonnpm view <package> versionnpm install <package>402 Payment Required:
--access public for public registrypublishConfig.access: "public" to package.jsonMissing authentication:
npm login to authenticateNPM_TOKEN environment variablenpx claudepluginhub laurigates/claude-plugins --plugin typescript-pluginConfigures package.json for publishing Bun-built npm packages, packages CLI binaries, enables provenance signing, and sets up release automation. Useful for Bun-to-npm publishing workflows.
Automates npm package publishing with version bumping, changelog updates, git push, and automatic token rotation via agent-browser when auth expires.
配置 npm 包通过 GitHub Actions 自动发布到 npmjs.com。使用 OIDC Trusted Publishing(无需 npm token)。 当用户提到"发布 npm"、"npm publish"、"配置 npm 自动发布"、"npm 包发布"、"设置 npm CI/CD"、 "把包发到 npm"、"npm trusted publishing"、"OIDC 发布"时使用此技能。 也适用于用户已有项目想添加 npm 自动发布流程的场景,或者 npm publish 失败需要排查的场景。