You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14a360a
Browse filesBrowse the repository at this point in the historyBrowse files
const major = Number(process.versions.node.split(".")[0]);
31
-
if (major < 24) {
32
-
throw new Error("need Node 24+, got " + process.version);
33
-
}
34
-
import("./dist/index.js").then((m) => {
35
-
if (typeof m.createGmailTools !== "function") {
36
-
throw new Error("missing export: createGmailTools");
37
-
}
38
-
console.log("node smoke ok", process.version);
39
-
});
40
-
'
22
+
set -euo pipefail
23
+
TARBALL="$PWD/$(npm pack --silent)"
24
+
mkdir -p "$RUNNER_TEMP/c" && cd "$RUNNER_TEMP/c"
25
+
npm init -y >/dev/null && npm pkg set type=module >/dev/null
26
+
npm install "$TARBALL"
27
+
node -e 'import("@corbits/google-tools").then((m) => { for (const n of ["createGmailTools", "createGmailClient", "GmailApiError"]) if (typeof m[n] !== "function") throw new Error("missing export: " + n); })'
0 commit comments