Skip to content

Commit ee252bc

Browse files
committed
can it be referenced from actions script too?
1 parent 391c5cf commit ee252bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/get_artifact_dir_name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require("fs");
22
const os = require("os");
33

4-
const artifactDirName = require("../../cli/bin_path").dirName;
4+
const { dirName: artifactDirName } = require("rescript/bin_path");
55

66
// Pass artifactDirName to subsequent GitHub actions
77
fs.appendFileSync(

.github/workflows/prepare_package_upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require("fs");
22
const os = require("os");
33

4-
const packageSpec = JSON.parse(fs.readFileSync("./package.json", "utf8"));
4+
const packageSpec = require("rescript/package.json");
55
const { version } = packageSpec;
66

77
const commitHash = process.argv[2] || process.env.GITHUB_SHA;

0 commit comments

Comments
 (0)