Repository navigation
chore: Yarn classic から npm 12 へ移行(strict-allow-scripts) - #40
Merged
Merged
Conversation
Pin packageManager to npm@12.2.1, replace yarn.lock with package-lock.json, keep Takumi Guard / min-release-age, and allow only the esbuild install scripts needed for module builds. CI and release now use npm ci after installing npm 12. Co-authored-by: YoheiNozaki <YouheiNozaki@users.noreply.github.com>
packageManager stays for repo/dev pinning. engines.npm would ship to npm consumers and is not appropriate for this OSS library. Co-authored-by: YoheiNozaki <YouheiNozaki@users.noreply.github.com>
Set contents:read, cache only _cacache, and drop restore-keys so a mismatched lockfile cannot fall back to another branch's cache. Co-authored-by: YoheiNozaki <YouheiNozaki@users.noreply.github.com>
Use .tool-versions as the single source for both Check and release so release no longer floats on Node 24.x. Keep npm 12 pinned separately. Co-authored-by: YoheiNozaki <YouheiNozaki@users.noreply.github.com>
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.
Summary
yarn.lock)からpackage-lock.jsonへ移行し、packageManagerを npm@12.2.1 に固定(リポジトリ開発用).npmrcを npm 向けに整理しstrict-allow-scripts=true(Takumi Guard /min-release-age=7は維持)。pnpm 向けキーは削除esbuild@0.25.12/esbuild@0.28.2のみ許可npm ciの前に npm 12 を入れ、setup-node のcache: yarnは使わない(npm 12 導入後に actions/cache)permissions: contents: readを明示_cacacheのみ保存し、restore-keysを外して exact key のみ(lockfile 不一致時の広い fallback を避ける)engines.npmは付けない(利用者へ npm 12 を強制しない).tool-versions)。release も24.x浮動をやめ、同じファイルを参照ClickUp: https://app.clickup.com/t/36964664/z92047dkga
Test plan
npm ci(strict-allow-scripts あり)npm run dev:preparenpm run lintnpm run dev:build(以前のコミットで確認)