fix(ci): fix the pre-release tag for nightly versions
MODIFY
npm/js-api/scripts/update-nightly-version.mjs
npm/js-api/scripts/update-nightly-version.mjs
@@ -18,7 +18,7 @@ if (
throw new Error("GITHUB_SHA environment variable is undefined");
}
-version += `.${process.env.GITHUB_SHA.substring(0, 7)}`;
+version += `-nightly.${process.env.GITHUB_SHA.substring(0, 7)}`;
rootManifest["version"] = version;
const content = JSON.stringify(rootManifest);

MODIFY
npm/rome/package.json
npm/rome/package.json
{
"name": "rome",
- "version": "0.10.1-next",
+ "version": "0.10.1",
"bin": "bin/rome",
"scripts": {
"postinstall": "node scripts/postinstall.js"

MODIFY
npm/rome/scripts/update-nightly-version.mjs
npm/rome/scripts/update-nightly-version.mjs
@@ -18,7 +18,7 @@ if (
throw new Error("GITHUB_SHA environment variable is undefined");
}
-version += `.${process.env.GITHUB_SHA.substring(0, 7)}`;
+version += `-nightly.${process.env.GITHUB_SHA.substring(0, 7)}`;
rootManifest["version"] = version;
const content = JSON.stringify(rootManifest);

fix(ci): fix the pre-release tag for nightly versions (#3501)