Repository navigation
Conversation
npm@latest で入る npm 12 の npm info --json は配列を返し、changesets が公開済みの版を読めず、公開済みの 0.1.1 を公開しようとして Release が失敗していた。kumihimo・tate-chu-yoko と同じ pnpm の構成に揃え、Node 24 同梱の npm を使う。 ロックファイルの作り直しで @types/hast が 3.0.5 に上がり className の型が狭くなったため、hasClass の値を unknown として受ける。動作は変わらない。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
release.ymlのnpm install -g npm@latestで npm 12 が入るようになりました。npm 12 のnpm info --jsonは結果を配列で返すため、changesets がversionsを読めず、公開済みの 0.1.1 を未公開と判定します。その結果、main への push のたびに Release が失敗します(失敗した run)。公開済みの版は変わっていません。変更
npm install -g npm@latestを削除し、Node 24 同梱の npm を使用dependencies・devDependenciesをworkspace:^に変更(peerDependenciesはそのまま)ci:version・ci:publishに変更pnpm-workspace.yamlを追加し、actions.lock を更新hasClassの値をunknownで受ける(@types/hast3.0.5 で型が狭くなったため。動作は同じ)確認
--frozen-lockfileのインストール後に typecheck・lint・test(99 件)・build が成功pnpm packの結果でworkspace:が^0.1.1に戻ることを確認注意
🤖 Generated with Claude Code
https://claude.ai/code/session_017i9u39ScU3ZouhGmHegq4H