Skip to content

Commit

Permalink
feat: Update default version to 2.10.9 and update dependencies to l…
Browse files Browse the repository at this point in the history
…atest (#27)
  • Loading branch information
bryantbiggs authored May 5, 2024
1 parent 6468ae0 commit d25c227
Show file tree
Hide file tree
Showing 9 changed files with 1,821 additions and 2,225 deletions.
37 changes: 0 additions & 37 deletions .eslintrc.js

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
description: >
Version of Argo CD to install - https://github.com/argoproj/argo-cd/releases
required: false
default: 2.8.4
default: 2.10.9

runs:
using: node20
Expand Down
10 changes: 3 additions & 7 deletions dist/index.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
// config with just ignores is the replacement for `.eslintignore`
ignores: ['**/dist/**', '**/*.js'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
);
36 changes: 12 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,15 @@
"author": "Clowd Haus, LLC",
"main": "src/index.ts",
"scripts": {
"all": "yarn format && yarn lint && yarn compile",
"all": "yarn lint && yarn compile",
"compile": "ncc build -m",
"format": "prettier --write src/*ts .eslintrc.js",
"lint": "eslint '**/*.ts' --quiet --fix",
"lint": "eslint . --quiet --fix",
"release": "semantic-release"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"git add"
],
"*.md": [
"prettier --single-quote --write"
],
"*package.json": [
"prettier --write --plugin=prettier-plugin-package"
]
},
"config": {
Expand Down Expand Up @@ -75,27 +68,22 @@
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.1",
"@octokit/auth-action": "^4.0.1",
"@octokit/rest": "^20.0.1",
"@octokit/auth-action": "^5.1.1",
"@octokit/rest": "^20.1.1",
"string-argv": "^0.3.2"
},
"devDependencies": {
"@eslint/js": "^9.2.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^20.6.4",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vercel/ncc": "^0.38.0",
"@types/node": "^20.12.8",
"@vercel/ncc": "^0.38.1",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-plugin-package": "^1.3.1",
"semantic-release": "^22.0.4",
"typescript": "^5.2.2"
"eslint": "^9.2.0",
"lint-staged": "^15.2.2",
"semantic-release": "^23.0.8",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0"
}
}
1 change: 1 addition & 0 deletions src/argo-cd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default class ArgoCD {
tag: `v${version}`,
});

/* eslint-disable @typescript-eslint/no-explicit-any */
const asset = releases.data.assets.filter((rel: any) => rel.name === executable)[0];
return asset.browser_download_url;
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2020",
"target": "esnext",
"moduleResolution": "node",
"skipLibCheck": true,
"removeComments": true,
Expand Down
Loading

0 comments on commit d25c227

Please sign in to comment.