Skip to content

npm Trusted Publishingでの自動publishを追加#10

Open
mimo-3 wants to merge 2 commits into
mainfrom
npm-trusted-publishing
Open

npm Trusted Publishingでの自動publishを追加#10
mimo-3 wants to merge 2 commits into
mainfrom
npm-trusted-publishing

Conversation

@mimo-3

@mimo-3 mimo-3 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

概要

mainへのpush時にnpmへ自動publishするステップをrelease workflowに追加しました。

変更内容

  • npm Trusted Publishing (OIDC) を使用するため id-token: write 権限を追加
  • Node 24(npm 11同梱、Trusted Publishingにはnpm 11.5.1+が必要)でsetup-node
  • レジストリ上に同バージョンが既に存在する場合はpublishをスキップ(再実行時の冪等性確保)
  • 連続pushでrelease jobが競合しないようconcurrencyを設定
  • version bump: 0.22.1 → 0.22.2

補足

  • トークン(NPM_TOKEN)は不要です。npmjs.com側でTrusted Publisher(GitHub Actions / mimo-3/slack-cli / release.yml)を設定してからマージしてください。
  • 初回リリース(0.22.1)は手元から手動publish済みの前提で、CIからは0.22.2以降がpublishされます。

@cursor

cursor Bot commented Jul 10, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant