Skip to content

Commit 6a68f61

Browse files
committed
fix: no top level await
1 parent 893f83f commit 6a68f61

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

index.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ const process = require("process");
22
const core = require("@actions/core");
33
const exec = require("@actions/exec");
44

5-
try {
6-
await exec.exec(`"/Library/Application Support/VMware Tools/vmware-resolutionSet" 1440 900`);
7-
process.argv.push("--ci");
8-
require("@guidepup/setup");
9-
} catch (err) {
10-
core.setFailed(err);
11-
process.exit();
5+
async function main() {
6+
try {
7+
await exec.exec(
8+
`"/Library/Application Support/VMware Tools/vmware-resolutionSet" 1440 900`
9+
);
10+
process.argv.push("--ci");
11+
require("@guidepup/setup");
12+
} catch (err) {
13+
core.setFailed(err);
14+
process.exit();
15+
}
1216
}
17+
18+
main();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@guidepup/setup-action",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "GitHub Action to setup your environment for screen-reader automation.",
55
"main": "index.js",
66
"author": "Craig Morten <craig.morten@hotmail.co.uk>",

0 commit comments

Comments
 (0)