Bump dependencies for github-actions package and align Node.js dev version to 20#213
Merged
Bump dependencies for github-actions package and align Node.js dev version to 20#213
github-actions package and align Node.js dev version to 20#213Conversation
Adapt imports to `import * as` for ESM-only @actions/core v3 and @actions/github v9.
09861af to
f5f9520
Compare
There was a problem hiding this comment.
Pull request overview
This pull request updates major dependencies for the github-actions package to their latest ESM-only versions and aligns the Node.js runtime requirement to v20. The changes include updating @actions/core from v2 to v3, @actions/github from v6 to v9, and semver from 7.7.3 to 7.7.4. All import statements have been consistently migrated from default imports to namespace imports to accommodate the ESM-only nature of the updated packages.
Changes:
- Updated
@actions/coreto v3.0.0 and@actions/githubto v9.0.0 (both now ESM-only) - Changed all imports from
import X fromtoimport * as X fromfor@actionspackages - Bumped Node.js engine requirement from >=18 to >=20
- Updated documentation example to reflect Node.js v20
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/github-actions/package.json | Updated dependency versions and Node.js engine requirement to >=20 |
| packages/github-actions/package-lock.json | Lockfile updated with new dependency versions and transitive dependencies |
| packages/github-actions/utils/repo-tool.js | Changed @actions/github import to namespace import |
| packages/github-actions/utils/handle-action-errors.js | Changed @actions/core import to namespace import |
| packages/github-actions/actions/update-version-tags/src/update-version-tags.js | Changed both @actions imports to namespace imports |
| packages/github-actions/actions/get-release-notes/src/get-release-notes.js | Changed both @actions imports to namespace imports |
| packages/github-actions/actions/get-plugin-releases/src/get-plugin-releases.js | Changed @actions/core import to namespace import |
| packages/github-actions/actions/prepare-node/README.md | Updated example node-version from 18 to 20 |
Files not reviewed (1)
- packages/github-actions/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Changes proposed in this Pull Request:
Update major dependencies and align Node.js requirement to 20 in
packages/github-actions.@actions/core:^2.0.1->^3.0.0@actions/github:^6.0.1->^9.0.0semver:^7.7.3->^7.7.4>=18->>=20node-versionexample inprepare-nodeREADME to match@actions/corev3 and@actions/githubv9 are now ESM-only and no longer provide default exports. Allimport X fromstatements have been updated toimport * as X fromto match.Risk assessment
@actions/githubupgrade also pulls in major bumps to Octokit internals (@octokit/corev5 -> v7,@octokit/plugin-rest-endpoint-methodsv10 -> v17, etc.). All REST API calls used in this package remain compatible with the new versions.uploadReleaseAssetwith binary data + custom headers: Verified compatible.dataparameter still acceptsBuffer.@octokit/request-errorv7 removeddeprecationandonce): Only standard properties (status,message,stack) are used. No impact.Validation
publish-extension-dev-buildaction