chore(docs-util): fix announcement script (#5503)

This commit is contained in:
Shahed Nasser
2023-10-31 18:27:12 +02:00
committed by GitHub
parent 201b35cd31
commit 9f29f18ee9

View File

@@ -3,6 +3,7 @@
import { Octokit } from "@octokit/core"
import fs from "fs"
import path from "path"
import { fileURLToPath } from "url"
const shouldExpire = process.argv.indexOf("--expire") !== -1
const octokit = new Octokit({
@@ -59,6 +60,9 @@ async function main() {
}
}
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
//write new config file
fs.writeFileSync(
path.join(