diff --git a/.github/linters/tsconfig.json b/.github/linters/tsconfig.json index acaf7b8..f4ddf1f 100644 --- a/.github/linters/tsconfig.json +++ b/.github/linters/tsconfig.json @@ -1,9 +1,17 @@ { - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "../../tsconfig.json", - "compilerOptions": { - "noEmit": true - }, - "include": ["../../__tests__/**/*", "../../src/**/*"], - "exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"] -} + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "../../tsconfig.json", + "compilerOptions": { + "noEmit": true + }, + "include": [ + "../../__tests__/**/*", + "../../src/**/*" + ], + "exclude": [ + "../../dist", + "../../node_modules", + "../../coverage", + "*.json" + ] +} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6d2861..b1fdab3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: id: test-action uses: ./ with: - milliseconds: 2000 + preid: "dev" - name: Print Output id: output diff --git a/.prettierrc.json b/.prettierrc.json index bf8e4f2..aa46be4 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,16 +1,16 @@ { - "printWidth": 80, - "tabWidth": 2, - "useTabs": true, - "semi": false, - "singleQuote": false, - "quoteProps": "as-needed", - "jsxSingleQuote": false, - "trailingComma": "none", - "bracketSpacing": true, - "bracketSameLine": true, - "arrowParens": "avoid", - "proseWrap": "always", - "htmlWhitespaceSensitivity": "css", - "endOfLine": "lf" -} + "printWidth": 80, + "tabWidth": 2, + "useTabs": true, + "semi": false, + "singleQuote": false, + "quoteProps": "as-needed", + "jsxSingleQuote": false, + "trailingComma": "none", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "avoid", + "proseWrap": "always", + "htmlWhitespaceSensitivity": "css", + "endOfLine": "lf" +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index e31354f..57fd84c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "cSpell.words": [ - "preid" - ] + "cSpell.words": [ + "preid" + ] } \ No newline at end of file diff --git a/README.md b/README.md index 63ab184..4aa6525 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Create a GitHub Action Using TypeScript +# Version Builder +Generates new version based on specified version (via input, or will read `package.json` of the repo) and add preid based on branches. [![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter) ![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg) diff --git a/action.yml b/action.yml index 5ff1a57..0bda422 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,5 @@ name: "Version Builder" -description: - "Generates/modifies version number based on version, branch and settings." +description: "Generates/modifies version number based on version, branch and settings." author: "Stephen Lautier" # Add your action's branding here. This will appear on the GitHub Marketplace. @@ -12,8 +11,7 @@ branding: inputs: version: required: false - description: - "Version to be used, if not specified will read from `package.json`." + description: "Version to be used, if not specified will read from `package.json`." # default: "default value if applicable" force-preid: required: false diff --git a/tsconfig.json b/tsconfig.json index 9e20ef9..ef48ebc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,24 @@ { - "$schema": "https://json.schemastore.org/tsconfig", - "compilerOptions": { - "target": "ES2022", - "module": "NodeNext", - "rootDir": "./src", - "moduleResolution": "NodeNext", - "baseUrl": "./", - "sourceMap": true, - "outDir": "./dist", - "noImplicitAny": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, - "newLine": "lf" - }, - "exclude": ["./dist", "./node_modules", "./__tests__", "./coverage"] -} + "$schema": "https://json.schemastore.org/tsconfig", + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "rootDir": "./src", + "moduleResolution": "NodeNext", + "baseUrl": "./", + "sourceMap": true, + "outDir": "./dist", + "noImplicitAny": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "newLine": "lf" + }, + "exclude": [ + "./dist", + "./node_modules", + "./__tests__", + "./coverage" + ] +} \ No newline at end of file