Skip to content

Commit 85c1ba9

Browse files
committed
Clone p5.js's latest release instead of main
1 parent b1f7199 commit 85c1ba9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/scripts/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import type { CopyOptions, Dirent } from "fs";
55
import { fileURLToPath } from "url";
66
import { rewriteRelativeLink } from "../pages/_utils-node";
77

8+
// This should correspond to the latest release tag name from
9+
// https://github.com/processing/p5.js/releases.
10+
export const latestRelease = "v1.10.0";
11+
812
/* Absolute path to the root of this project repo */
913
export const repoRootPath = path.join(
1014
path.dirname(fileURLToPath(import.meta.url)),
@@ -42,6 +46,8 @@ export const cloneLibraryRepo = async (
4246
"--depth",
4347
"1",
4448
"--filter=blob:none",
49+
"--branch",
50+
latestRelease
4551
]);
4652
console.log("Repository cloned successfully.");
4753
await fixAbsolutePathInPreprocessor(localSavePath);

0 commit comments

Comments
 (0)