actions-npm
Use when creating or debugging GitHub Actions workflows that publish npm packages with trusted publishing / OIDC.
Skill by JsonLee12138
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jsonlee12138-actions-npm
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/actions-npm
What's inside
- Skill name
actions-npm- Description
- Use when creating or debugging GitHub Actions workflows that publish npm packages with trusted publishing / OIDC. Triggers on npm publish in CI, ENEEDAUTH, E404 or E422 during publish, tag-triggered releases, setup-node auth behavior, or provenance issues in public vs private GitHub repositories.
- License
- Apache-2.0
- Instructions
- 49 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- release-npm.yml · assets/
SKILL.md (first lines)
# Actions NPM Publish (Trusted Publishing) ## Workflow Template See [assets/release-npm.yml](assets/release-npm.yml) — 可直接复制到 `.github/workflows/` 使用。 ## How It Works trusted publishing 用 GitHub OIDC 替代长期有效的 `NPM_TOKEN`: 1. workflow 运行在 GitHub-hosted runner 上 2. job 具备 `permissions.id-token: write` 3. npm / `actions/setup-node` 用 GitHub OIDC 身份换取发布凭证 4. `npm publish` 使用该凭证发布 **不需要 `NPM_TOKEN` secret。** ## Verified Requirements - workflow 必须在 `.github/workflows/` - 必须使用 GitHub-hosted runner - 必须有 `id-token: write` - npm trusted publisher 必须精确匹配仓库和 workflow 文件名,例如 `release-auth-sdk.yml` - `package.json.repository.url` 必须匹配 GitHub 仓库 URL - 推荐 `actions/setup-node@v6` - 推荐 Node 24;如果保留 Node 22,需确认 npm 已升级到 `11.5.1+` ## Important Gotchas - 使用 `actions/setup-node@v6` 时,不要再手动设置 `NODE_AUTH_TOKEN: ""`。按实测,这种组合会导致 `ENEEDAUTH`;优先让 `setup-node` 自己处理发布凭证。 - `npm notice Publishing to https://registry.npmjs.org/` 之后再报 `E404`,通常说明认证已经通过,但 npm 侧的包权限、scope 权限,或 trusted publisher 元数据仍不匹配。 - `E422 ... Unsupported GitHub Actions source repository visibility: "private"` 表示 private GitHub 仓库不支持 `--provenance`。此时去掉 `--provenance`,保留普通 trusted publishing 即可。 - provenance 目前只适用于 public source repository。 ## Publish Command - public GitHub repo: `npm publish --provenance --access public` - private GitHub repo: `npm publish --access public` ## Quick Checklist - `actions/setup-node@v6` - `node-version: "24"` - `registry-url: https://registry.npmjs.org/` - 不配置 `NPM_TOKEN` - 不手动覆盖 `NODE_AUTH_TOKEN` - npm 后台 trusted publisher 中的 workflow filename 与实际文件名完全一致
From JsonLee12138/prompts, Apache-2.0.
More from JsonLee12138/prompts
- 0.448score
vite-tanstack
JsonLee12138
TanStack (Router/Query/Form/Table) configuration guide for Vite + React projects.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
claude-design
JsonLee12138
Unified design workflow router for critique, accessibility review, developer handoff, design system work, UX copy, user research, and research synthesis.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
components
JsonLee12138
Use when designing, implementing, or reviewing React/TypeScript components with naming conventions, props typing, hooks usage, and UnoCSS styling standards.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
design-patterns-principles
JsonLee12138
Use when a request asks for software design patterns or design principles, including explanations, comparisons, summaries, or quick reference grounded in…
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
eslint-config
JsonLee12138
Use when configuring ESLint with @antfu/eslint-config for a single project or a monorepo workspace, including flat config setup, shared config packages…
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
makefile
JsonLee12138
Use when creating, editing, or validating Makefiles.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
solo-ops
JsonLee12138
AI team role manager for multi-agent development workflows.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
unocss-shadcn
JsonLee12138
Configure UnoCSS with unocss-preset-shadcn using a semi-automatic, framework-agnostic workflow.
SkillDFreshness: D★ 2Claude Code +9 - 0.417score
brainstorming
JsonLee12138
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 11, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/JsonLee12138/prompts
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from JsonLee12138
- 0.502score
task-splitting
JsonLee12138
Decompose requirement, design, or brainstorming documents into reviewable task drafts with one function per task and one file per task, then create…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
prompt-engineering-patterns
JsonLee12138
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
mckinsey-consultant
JsonLee12138
McKinsey-style business consultant for hypothesis-driven problem solving, structured analysis, and strategic recommendations Use when the user asks for…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
pencil-designer
JsonLee12138
Senior Pencil UI/UX Designer specializing in design systems, responsive interfaces, and accessible applications with mandatory Pencil MCP integration Use when…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
pm
JsonLee12138
Full-stack product manager covering strategy, discovery, execution, go-to-market, market research, data analytics, marketing growth, and PM toolkit Use when…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
pd
JsonLee12138
产品总监角色,精通产品战略、用户研究、优先级排序、路线图规划、SaaS 指标分析、研讨会引导和团队领导力发展,覆盖从发现到交付的完整产品管理生命周期 Use when the user asks for pd-related work such as: 产品战略与定位, 用户研究与客户发现, 优先级排序与路线图…
SkillDFreshness: D★ 33Claude Code +9
Cite this page
actions-npm skill. Agent Mart. https://agentmart.dev/skills/jsonlee12138-actions-npm (last updated 2026-10-24)