Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealWaldo committed Aug 7, 2021
1 parent 45812c9 commit 7c25850
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { context } from '@actions/github';
import { execSync } from 'child_process';
import { parse as parseJson } from 'json5';

import { runTasks, options } from 'release-it';
import { default as release, options } from 'release-it';

const event = context.payload;

Expand Down Expand Up @@ -101,7 +101,7 @@ try {
endGroup();

group('release-it', async () => {
await runTasks(jsonOpts)
await release(jsonOpts)
.catch((reason) => {
throw reason;
})
Expand Down
8 changes: 4 additions & 4 deletions src/types/release-it/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'release-it' {
export interface options {
export declare interface options {
increment?: boolean;
git?: {
requireCleanWorkingDir?: boolean;
Expand All @@ -12,8 +12,8 @@ declare module 'release-it' {
push?: boolean;
};
}
export function runTasks(
opts: options,
di?: options
declare function fn(
options: options
): Promise<{ name: string; changelog: string; latestVersion: string; version: string }>;
export = fn;
}

0 comments on commit 7c25850

Please sign in to comment.