chore(docs-util): fix announcement script (#5503)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user