Skip to content

Commit 1d5c972

Browse files
committed
wasm release
1 parent 8e5868e commit 1d5c972

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

platform/wasm/publish.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ await uploadFile("fullstacked.wasm", "application/octet-stream");
7777
await uploadFile("wasm_exec.js", "application/octet-stream");
7878
await uploadFile("editor.zip", "application/octet-stream");
7979

80-
// set beta version to current
80+
// set version to current
81+
const isRelease = process.argv.includes("--release");
82+
8183
const uploadCommand = new PutObjectCommand({
8284
Bucket: credentialsCF.R2_BUCKET_NAME,
83-
Key: `wasm/beta.txt`,
85+
Key: isRelease ? `wasm/release.txt` : `wasm/beta.txt`,
8486
Body: JSON.stringify(version, null, 2),
8587
ContentType: "text/plain"
8688
});
89+
8790
await s3Client.send(uploadCommand);

0 commit comments

Comments
 (0)