Home›Industry & Policy›npmのステージ済みパッケージ向けバッチ承認リリース
npm batch approval releases for staged packages

npmのステージ済みパッケージ向けバッチ承認リリースnpm batch approval releases for staged packages

元記事を読むRead original articlegithub.blog(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

npmのStaged Publishing Plansで、複数パッケージ(1パッケージにつき1バージョン)を1つのバッチにまとめ、2FA承認1回で一括公開できるようになりました。モノレポの同時リリースで、依存関係の公開タイミングのずれによるインストール失敗を防げます。

npm Staged Publishing Plans now group several staged packages, one version each, into a batch released with a single 2FA approval. Monorepo maintainers avoid per-package challenges and mid-release install breakage.

AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (github.blog) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (github.blog).

npmのStaged Publishing Plansに、ステージ済みの複数パッケージをひとつのバッチにまとめ、2要素認証(2FA)の承認1回でまとめて公開できる機能が加わった。モノレポのように多数のパッケージを同時にリリースする場面で、承認の手間と公開途中の不整合を減らすものと説明されている。

バッチにまとめて公開

メンテナーは、ステージ済みの複数バージョンをひとつのグループ化されたバッチにまとめられる。対象は1パッケージにつき最大1バージョンである。バッチに入れたものは個別にではなく、ひとつのリリースとしてまとめて公開される。

従来は都度の2FA

これまでのステージ公開では、リリースごとに2FAのチャレンジが発行されていた。そのため多数のパッケージを一度に公開する場合は、パッケージとバージョンの数だけチャレンジに応じる必要があった。

承認の対象は固定される

新しい方式では、複数パッケージのモノレポリリースでも承認は1回で済む。この承認は、承認時に表示されたパッケージとバージョンの組に結び付けられる。承認が及ぶのは、その時点で提示された内容に限られる。

公開途中のインストール失敗

従来の方式には、一部のパッケージだけが公開され、それに依存する兄弟パッケージがまだ公開されていない時間帯が生じるという問題もあった。この状態ではリリースの途中でインストールが壊れる可能性があった。Publishing Plansはバッチ全体をひとつのリリースとして調整できるようにすることで、この問題に対処するとされている。

Staged Publishing Plans

npm has added a way for package maintainers to release several staged packages in one step. According to the announcement, Staged Publishing Plans let maintainers bundle multiple staged versions, with up to one version per package, into a single grouped batch. This matters most for monorepo releases, where many packages are published together.

One Approval Per Batch

The batch is released under one two-factor authentication (2FA) approval. Rather than approving each version separately, a multi-package monorepo release now needs just one approval. The announcement says that approval is bound to the exact set of packages and versions shown at the time it is given.

This changes how staged publishing behaved before. Previously, staged publishing issued a 2FA challenge for each release. Releasing many packages at once therefore meant one challenge per package and version.

Mid-Release Install Breakage

The per-package approach also had a second cost. According to the source, it created a window in which some packages were already published while their dependent siblings were not yet. During that window, installs could break.

Publishing Plans is described as addressing this by coordinating an entire batch as a single release. Because the packages are approved and released together, maintainers no longer have to go through separate challenges, and the gap between dependent packages being published is the problem the batch is meant to avoid.

What Maintainers Get

In summary, the update gives maintainers of multi-package projects three things:

The first is grouping, since several staged packages can be collected into one batch with one version per package. The second is a single 2FA approval for the whole batch, tied to the exact packages and versions displayed when approval is given. The third is protection against installs breaking partway through a release, because dependent packages are no longer published at different moments.

The announcement does not provide further detail beyond this description of how batching and approval work.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko2FA承認が、パッケージごとに1回から、バッチ全体で1回になったんだね。これって大きいこと?So 2FA approval went from once per package to once per whole batch? Is that a big deal?
  2. TECHガイドTECH Guideモノレポで多くのパッケージを同時に出す場合は大きいと思うよ。この記事では、以前はパッケージとバージョンごとに2FAの確認が必要だったと書かれているよ。For monorepos releasing many packages at once, it sounds big. The article says each package and version used to need its own 2FA challenge.
  3. ポコPoko承認が「表示された内容に結びつく」って、どういうこと?It says approval is "bound to" what's shown. What does that mean?
  4. TECHガイドTECH Guide承認する時に見えているパッケージとバージョンの組み合わせに対して、承認が有効になるってことだよ。承認した内容と、公開される内容が一致する、というイメージだね。Approval applies to the exact packages and versions you saw when you approved. So what you approve is what gets published.
  5. ポコPoko依存し合うパッケージをまとめて出したい時に、使えそうだね。途中で壊れる心配も減るのかな?I'd use it for packages that depend on each other. Would that cut the risk of things breaking midway?
  6. TECHガイドTECH Guide記事では、公開のタイミングがずれると、依存先がまだ無くてインストールが壊れることがあると説明しているよ。ただ、バッチは1パッケージにつき1バージョンまでという条件があるよ。The article says staggered publishing can break installs when a dependency isn't out yet. Note the limit, though: one version per package in a batch.
記事情報・収集記録Article details & collection record
出典Source
GitHub Changelog公式Official
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
変更履歴Changelog
原文言語Source language
英語English
重要度の位置づけImportance in this lane
MediumMedium priority(Industry & Policy 476件中、同等以上 425件)(425 of 476 Industry & Policy entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.0 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
短命 (ニュース)Short-lived (news)

📰Industry & Policy の他の記事More from Industry & Policyもっと見る →View more →

ページ上部へScroll to top