47
loading...
This website collects cookies to deliver better user experience
run.using
in the actions.yml
file. We may need several additional updates like below:package.json
, you will need to update it.16.13.1
is the current latest version, so the preferred configuration would be as follows:"engines": {
"node": "^16.13.1"
}
compilerOptions
as follows:"compilerOptions": {
"lib": ["ES2021"],
"module": "commonjs",
"target": "ES2021"
}
any
to unknown
by default.core.setFailed()
method, you need to check the type of caught object in runtime:- core.setFailed(error)
+ if (error instanceof Error) {
+ core.setFailed(error)
+ } else {
+ core.setFailed(JSON.stringify(error))
+ }
$ npm add -D eslint@^8.5.0 @typescript-eslint/parser@^5.8.0 eslint-plugin-github@^4.3.5 eslint-plugin-jest@^25.3.0
.eslintrc.json
from the template project, or follow ESLint's migration guide documented in its GitHub Releases.actions/setup-node
to specify the version of NodeJS, you need to update the node-version
config in the workflow definitions..node-version
and .nvmrc
, you can use the node-version-file
config supported from v2.5.0
.