Skip to content

Commit

Permalink
debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dannykim-endor committed Nov 8, 2024
1 parent 464bbe8 commit 2dd246a
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 20 deletions.
13 changes: 10 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116362,9 +116362,16 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
// If you only need the major version as a number:
const majorVersion = parseFloat(nodeVersion);
core.info(`replaced: ${majorVersion}`);
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
const requiredVersion = 14.17;
if (majorVersion >= requiredVersion) {
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
core.info(`Installed!`);
}
else {
core.warning(`Unable to install typescript server (node >= ${requiredVersion} is required).`);
}
}
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116178,9 +116178,16 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
// If you only need the major version as a number:
const majorVersion = parseFloat(nodeVersion);
core.info(`replaced: ${majorVersion}`);
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
const requiredVersion = 14.17;
if (majorVersion >= requiredVersion) {
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
core.info(`Installed!`);
}
else {
core.warning(`Unable to install typescript server (node >= ${requiredVersion} is required).`);
}
}
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions dist/sign/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116175,9 +116175,16 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
// If you only need the major version as a number:
const majorVersion = parseFloat(nodeVersion);
core.info(`replaced: ${majorVersion}`);
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
const requiredVersion = 14.17;
if (majorVersion >= requiredVersion) {
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
core.info(`Installed!`);
}
else {
core.warning(`Unable to install typescript server (node >= ${requiredVersion} is required).`);
}
}
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/sign/index.js.map

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions dist/verify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116018,9 +116018,16 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
// If you only need the major version as a number:
const majorVersion = parseFloat(nodeVersion);
core.info(`replaced: ${majorVersion}`);
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
const requiredVersion = 14.17;
if (majorVersion >= requiredVersion) {
// Install it
core.info(`Installing tsserver`);
yield exec.exec("npm", ["install", "-g", "typescript"]);
core.info(`Installed!`);
}
else {
core.warning(`Unable to install typescript server (node >= ${requiredVersion} is required).`);
}
}
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/verify/index.js.map

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,18 @@ export const setupEndorctl = async ({ version, checksum, api }: SetupProps) => {
// If you only need the major version as a number:
const majorVersion = parseFloat(nodeVersion);
core.info(`replaced: ${majorVersion}`);

// Install it
core.info(`Installing tsserver`);
await exec.exec("npm", ["install", "-g", "typescript"]);
const requiredVersion = 14.17;

if (majorVersion >= requiredVersion) {
// Install it
core.info(`Installing tsserver`);
await exec.exec("npm", ["install", "-g", "typescript"]);
core.info(`Installed!`);
} else {
core.warning(
`Unable to install typescript server (node >= ${requiredVersion} is required).`
);
}
}
} catch (error: any) {
core.setFailed(error);
Expand Down

0 comments on commit 2dd246a

Please sign in to comment.