diff --git a/eslint.config.mjs b/eslint.config.mjs index e8d88687..d5e25259 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,5 @@ import {defineConfig, globalIgnores} from 'eslint/config' import jest from 'eslint-plugin-jest' -import typescriptEslint from '@typescript-eslint/eslint-plugin' import globals from 'globals' import tsParser from '@typescript-eslint/parser' import github from 'eslint-plugin-github' @@ -12,7 +11,6 @@ export default defineConfig([ { plugins: { jest, - '@typescript-eslint': typescriptEslint, '@stylistic': stylistic }, languageOptions: { diff --git a/package-lock.json b/package-lock.json index 35fa31fd..588f3f15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "setup-github-cli", - "version": "3.5.0", + "version": "3.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "setup-github-cli", - "version": "3.5.0", + "version": "3.5.1", "license": "MIT", "dependencies": { "@actions/core": "1.11.1", @@ -16,7 +16,6 @@ "@stylistic/eslint-plugin": "5.10.0", "@types/jest": "30.0.0", "@types/node": "20.19.35", - "@typescript-eslint/eslint-plugin": "8.57.0", "@typescript-eslint/parser": "8.57.0", "@vercel/ncc": "0.38.4", "eslint": "9.39.3", diff --git a/package.json b/package.json index 85270c36..6bd661b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-github-cli", - "version": "3.5.0", + "version": "3.5.1", "private": true, "description": "Setup the github cli tools", "main": "lib/main.js", @@ -32,7 +32,6 @@ "@stylistic/eslint-plugin": "5.10.0", "@types/jest": "30.0.0", "@types/node": "20.19.35", - "@typescript-eslint/eslint-plugin": "8.57.0", "@typescript-eslint/parser": "8.57.0", "@vercel/ncc": "0.38.4", "eslint": "9.39.3", diff --git a/src/main.ts b/src/main.ts index 7ca5d393..dc2a45f5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,8 +6,12 @@ async function run(): Promise { const version: string = core.getInput('version') core.debug('version ${version} ') await installer.install(version) - } catch (error: any) { - core.setFailed(error.message) + } catch (error: unknown) { + if (error instanceof Error) { + core.setFailed(error.message) + } else { + core.setFailed('An unknown error occurred') + } } }