Skip to content

Commit 265fdaf

Browse files
committed
Fixing lint issues and adding existing functionality test
1 parent b7c6f30 commit 265fdaf

File tree

2 files changed

+201
-73
lines changed

2 files changed

+201
-73
lines changed

src/action/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Access, Options } from "../options";
44

55
/**
66
* The main entry point of the GitHub Action
7+
*
78
* @internal
89
*/
910
async function main(): Promise<void> {
@@ -33,11 +34,13 @@ async function main(): Promise<void> {
3334
console.log(
3435
`\n📦 ${results.package} v${results.version} is already published to NPM`
3536
);
36-
} else if (results.dryRun) {
37+
}
38+
else if (results.dryRun) {
3739
console.log(
3840
`\n📦 ${results.package} v${results.version} was NOT actually published to NPM (dry run)`
3941
);
40-
} else {
42+
}
43+
else {
4144
console.log(
4245
`\n📦 Successfully published ${results.package} v${results.version} to NPM`
4346
);
@@ -50,7 +53,8 @@ async function main(): Promise<void> {
5053
setOutput("tag", results.tag);
5154
setOutput("access", results.access);
5255
setOutput("dry-run", results.dryRun);
53-
} catch (error) {
56+
}
57+
catch (error) {
5458
errorHandler(error as Error);
5559
}
5660
}

0 commit comments

Comments
 (0)