Skip to content

Commit f5312e0

Browse files
committed
fix artifact action
1 parent fe36f8d commit f5312e0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const fs = require("node:fs");
22
const os = require("node:os");
33

4-
const { platformDir } = require("#cli/bin_path");
4+
const { platformName } = require("#cli/bin_path");
55

66
// Pass artifactDirName to subsequent GitHub actions
77
fs.appendFileSync(
88
process.env.GITHUB_ENV,
9-
`artifact_dir_name=${platformDir}${os.EOL}`,
9+
`artifact_dir_name=${platformName}${os.EOL}`,
1010
);

cli/bin_path.js

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const rescript_editor_analysis_exe = path.join(
5252
*/
5353
const rewatch_exe = path.join(platformDir, "rewatch.exe");
5454

55+
exports.platformName = platformName;
5556
exports.platformDir = platformDir;
5657
exports.bsc_exe = bsc_exe;
5758
exports.ninja_exe = ninja_exe;

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"lib_dev/*",
1818
"scripts/*",
1919
"tests/**/input.js",
20+
".github/workflows/*.js",
2021
"package.json"
2122
],
2223
"exclude": ["*.res.js", "*.res.mjs"]

0 commit comments

Comments
 (0)