We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5868e commit 1d5c972Copy full SHA for 1d5c972
platform/wasm/publish.js
@@ -77,11 +77,14 @@ await uploadFile("fullstacked.wasm", "application/octet-stream");
77
await uploadFile("wasm_exec.js", "application/octet-stream");
78
await uploadFile("editor.zip", "application/octet-stream");
79
80
-// set beta version to current
+// set version to current
81
+const isRelease = process.argv.includes("--release");
82
+
83
const uploadCommand = new PutObjectCommand({
84
Bucket: credentialsCF.R2_BUCKET_NAME,
- Key: `wasm/beta.txt`,
85
+ Key: isRelease ? `wasm/release.txt` : `wasm/beta.txt`,
86
Body: JSON.stringify(version, null, 2),
87
ContentType: "text/plain"
88
});
89
90
await s3Client.send(uploadCommand);
0 commit comments