Skip to content

Commit c123430

Browse files
committed
Updated scripts to beta
1 parent 4ef72ed commit c123430

File tree

3 files changed

+6
-37
lines changed

3 files changed

+6
-37
lines changed

.github/workflows/azure-beta-docs.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

scripts/copy-changelog.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ const fetch = require("node-fetch");
44

55
(async () => {
66
try {
7-
const production = process.env.VERCEL_ENV === "production";
7+
const production = process.env.NEXT_PUBLIC_VERCEL_ENV === "production";
88

9-
const changelogUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${
10-
production ? "main" : "dev"
11-
}/CHANGELOG.md`;
9+
const changelogUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "beta"
10+
}/CHANGELOG.md`;
1211

1312
const response = await fetch(changelogUrl);
1413
if (!response.ok) {

scripts/generate-schema.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ const escapeQuotes = (/** @type {string} */ str) => {
5151
}
5252

5353
(async () => {
54-
const production = process.env.VERCEL_ENV === "production";
54+
const production = process.env.NEXT_PUBLIC_VERCEL_ENV === "production";
5555

56-
const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "dev"}/package.json`;
57-
const pkgEnUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "dev"}/package.nls.json`;
56+
const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "beta"}/package.json`;
57+
const pkgEnUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "beta"}/package.nls.json`;
5858

5959
const pkg = await fetch(pkgUrl);
6060
const pkgLocale = await fetch(pkgEnUrl);

0 commit comments

Comments
 (0)