Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the project to an ESM-based setup while modernizing TypeScript compiler settings and bumping GitHub Actions/tooling dependencies to newer major versions.
Changes:
- Switch package/module configuration toward ESM (
type: module,module: preserve, ESM runtime scoping fordist/). - Update TypeScript compiler options for stricter checking and modern targets (ES2022, isolated modules, verbatim module syntax, etc.).
- Upgrade
@actions/*dependencies and related tooling versions (plus lockfile regeneration).
Reviewed changes
Copilot reviewed 2 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Modernizes TS compiler options for stricter + ESM-friendly typechecking. |
| src/index.ts | Adjusts artifact deletion flow to rely on exception-based failures and improve error logging. |
| package.json | Marks the package as ESM and bumps dependency versions. |
| package-lock.json | Updates lockfile to reflect new dependency graph and versions. |
| dist/package.json | Adds ESM package scope for dist/ runtime resolution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 6 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/index.ts:37
- The outer catch passes
errtocore.setFailedvia a type assertion. Since thrown values can be non-Error(e.g., objects), this can lead to unhelpful[object Object]output or type-unsafe usage. Consider normalizing the value (e.g., use theinstanceof Errorcheck you already use above, otherwise coerce to a string) before callingsetFailed.
} catch (err) {
core.setFailed(<string | Error>err);
}
💡 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.
No description provided.