Skip to content

Commit 464bbe8

Browse files
Testing commit
1 parent c9a479c commit 464bbe8

File tree

9 files changed

+36
-4
lines changed

9 files changed

+36
-4
lines changed

dist/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116356,6 +116356,12 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
116356116356
const command = "tsserver";
116357116357
core.info(`Checking for tsserver`);
116358116358
if (!(0, exports.commandExists)(command)) {
116359+
core.info(`Current version: ${process.version}`);
116360+
const nodeVersion = process.version.replace(/^v/, ""); // Remove the "v" prefix
116361+
core.info(`replaced: ${nodeVersion}`);
116362+
// If you only need the major version as a number:
116363+
const majorVersion = parseFloat(nodeVersion);
116364+
core.info(`replaced: ${majorVersion}`);
116359116365
// Install it
116360116366
core.info(`Installing tsserver`);
116361116367
yield exec.exec("npm", ["install", "-g", "typescript"]);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116172,6 +116172,12 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
116172116172
const command = "tsserver";
116173116173
core.info(`Checking for tsserver`);
116174116174
if (!(0, exports.commandExists)(command)) {
116175+
core.info(`Current version: ${process.version}`);
116176+
const nodeVersion = process.version.replace(/^v/, ""); // Remove the "v" prefix
116177+
core.info(`replaced: ${nodeVersion}`);
116178+
// If you only need the major version as a number:
116179+
const majorVersion = parseFloat(nodeVersion);
116180+
core.info(`replaced: ${majorVersion}`);
116175116181
// Install it
116176116182
core.info(`Installing tsserver`);
116177116183
yield exec.exec("npm", ["install", "-g", "typescript"]);

dist/setup/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sign/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116169,6 +116169,12 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
116169116169
const command = "tsserver";
116170116170
core.info(`Checking for tsserver`);
116171116171
if (!(0, exports.commandExists)(command)) {
116172+
core.info(`Current version: ${process.version}`);
116173+
const nodeVersion = process.version.replace(/^v/, ""); // Remove the "v" prefix
116174+
core.info(`replaced: ${nodeVersion}`);
116175+
// If you only need the major version as a number:
116176+
const majorVersion = parseFloat(nodeVersion);
116177+
core.info(`replaced: ${majorVersion}`);
116172116178
// Install it
116173116179
core.info(`Installing tsserver`);
116174116180
yield exec.exec("npm", ["install", "-g", "typescript"]);

dist/sign/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/verify/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116012,6 +116012,12 @@ const setupEndorctl = ({ version, checksum, api }) => __awaiter(void 0, void 0,
116012116012
const command = "tsserver";
116013116013
core.info(`Checking for tsserver`);
116014116014
if (!(0, exports.commandExists)(command)) {
116015+
core.info(`Current version: ${process.version}`);
116016+
const nodeVersion = process.version.replace(/^v/, ""); // Remove the "v" prefix
116017+
core.info(`replaced: ${nodeVersion}`);
116018+
// If you only need the major version as a number:
116019+
const majorVersion = parseFloat(nodeVersion);
116020+
core.info(`replaced: ${majorVersion}`);
116015116021
// Install it
116016116022
core.info(`Installing tsserver`);
116017116023
yield exec.exec("npm", ["install", "-g", "typescript"]);

dist/verify/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ export const setupEndorctl = async ({ version, checksum, api }: SetupProps) => {
244244
const command = "tsserver";
245245
core.info(`Checking for tsserver`);
246246
if (!commandExists(command)) {
247+
core.info(`Current version: ${process.version}`);
248+
const nodeVersion = process.version.replace(/^v/, ""); // Remove the "v" prefix
249+
core.info(`replaced: ${nodeVersion}`);
250+
251+
// If you only need the major version as a number:
252+
const majorVersion = parseFloat(nodeVersion);
253+
core.info(`replaced: ${majorVersion}`);
254+
247255
// Install it
248256
core.info(`Installing tsserver`);
249257
await exec.exec("npm", ["install", "-g", "typescript"]);

0 commit comments

Comments
 (0)