Skip to content

Commit

Permalink
build: Build support for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintyj committed Jun 27, 2024
1 parent 8c6d242 commit a3a0acf
Show file tree
Hide file tree
Showing 11 changed files with 4,401 additions and 4,527 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: 📦Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
- name: 🌳Setup Node
uses: actions/setup-node@v4
with:
Expand Down
8,851 changes: 4,370 additions & 4,481 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node_modules/@types/node/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 11 additions & 27 deletions dist/node_modules/@types/node/events.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/node_modules/@types/node/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export type downloadOptions = 'ignore' | 'node' | 'test';
export type DownloadOptions = 'ignore' | 'node' | 'test';
export type BooleanAsString = 'true' | 'false';
6 changes: 3 additions & 3 deletions dist/types/lint.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { LintOptions, QualifiedConfig } from '@commitlint/types';
import type { downloadOptions } from './index.js';
import type { DownloadOptions } from './index.js';
/**
* Conditionally sets values from configuration as a LintOptions object
* @param {QualifiedConfig} configuration - Commitlint configuration file from load
* @return {LintOptions} LintOptions object with possible falsy default values
*/
declare function getLintOptions(configuration: QualifiedConfig): LintOptions;
type configurationProps = {
downloadOptions: downloadOptions;
downloadOptions: DownloadOptions;
};
declare function loadCommitLintConfig(downloadConfig: downloadOptions): Promise<QualifiedConfig | undefined>;
declare function loadCommitLintConfig(downloadConfig: DownloadOptions): Promise<QualifiedConfig | undefined>;
declare function extractPackageNameFromError(errorMessage: string): string | null;
export declare const testLintOptions: {
getLintOptions: typeof getLintOptions;
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type BooleanAsString = 'true' | 'false';
/**
* Main function for @prlint action
*/
async function run(): Promise<void> {
async function run(): Promise<boolean> {
const downloadDependencies: DownloadOptions = core.getInput('download-dependencies') as DownloadOptions ?? 'ignore';
const body: BooleanAsString = core.getInput('body') as BooleanAsString ?? 'false';

Expand Down Expand Up @@ -48,7 +48,7 @@ void (async () => {
try {
await Promise.race([run(), timeoutPromise]);
}
catch (error) {
handleError(error);
catch (err) {
handleError(err);
}
})();

0 comments on commit a3a0acf

Please sign in to comment.