install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/bun-publish" ~/.claude/skills/diegosouzapw-awesome-omni-skill-bun-publish && rm -rf "$T"
manifest:
skills/tools/bun-publish/SKILL.mdsource content
/bun:publish
Publish package to npm registry after building with Bun.
Parameters
: Preview publish without executing--dry-run
: Access level (--access
orpublic
)restricted
: Enable supply chain provenance signing--provenance
Context
Detect package configuration:
cat package.json | jq '{name, version, publishConfig, bin, files, scripts: {prepublishOnly: .scripts.prepublishOnly}}'
Execution
Pre-publish Validation
# Type check bun run tsc --noEmit 2>&1 | head -20 # Build bun run build # Verify tarball contents npm pack --dry-run
Publish
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 }}
Scoped Package Detection
If
package.json name starts with @:
- Automatically add
unless explicitly restricted--access public - Warn if
is not set in package.jsonpublishConfig.access
Post-publish
- Display published version:
npm view <package> version - Show installation command:
npm install <package> - Link to npm package page
Error Handling
402 Payment Required:
- Scoped packages require
for public registry--access public - Add
to package.jsonpublishConfig.access: "public"
Missing authentication:
- Run
to authenticatenpm login - Or set
environment variableNPM_TOKEN