ci: 升级 actions 至 Node 24 运行时,消除 deprecation 警告 - #9
Merged
Conversation
- actions/checkout v4 → v7 - actions/setup-node v4 → v7 - softprops/action-gh-release v2 → v3 三者均为 Node 20 运行时,已被 runner 强制跑在 Node 24 并告警。 已核对各 major 的 breaking changes,与本项目用法(checkout 裸用、 setup-node 显式 cache: npm、gh-release 的 tag_name/generate_release_notes) 均不冲突。纯 ci 改动,不 bump version。 Co-Authored-By: Claude Code <noreply@anthropic.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.
背景
publish workflow 日志出现 deprecation 警告:
改动
actions/checkoutactions/setup-nodesoftprops/action-gh-release兼容性核对(各 major 的 breaking changes vs 本项目用法)
pull_request_targetcheckout fork PR(本项目仅用push/pull_request触发)→ 无影响cache: npm;v7 移除 dummyNODE_AUTH_TOKENexport——本项目在 publish step 显式提供 env → 无影响tag_name/generate_release_notes参数不变 → 无影响发布影响
纯
ci:改动,不 bump version。合并后 publish workflow 的 version-check 发现 1.7.0 == npm 上的 1.7.0,会自动跳过发布(同时正好作为新版本 actions 的实跑验证)。🤖 Generated with Claude Code