Releases: GeosWorl/GlobalToken
Initial release
const fetch = require("node-fetch");
const GITHUB_TOKEN = "your_github_personal_access_token"; // Replace with your GitHub Personal Access Token
const OWNER = "GeosWorl";
const REPO = "GlobalToken";
const TAG_NAME = "v1.0.0"; // Replace with your desired tag name
const RELEASE_NAME = "Initial Release"; // Replace with your desired release title
const RELEASE_BODY = "Description of your release"; // Replace with your release description
const DRAFT = false; // Set to true if you want this release to be a draft
const PRERELEASE = false; // Set to true if this release is a pre-release
async function createRelease() {
const url = https://api.github.com/repos/${OWNER}/${REPO}/releases;
const response = await fetch(url, {
method: "POST",
headers: {
"Authorization": token ${GITHUB_TOKEN},
"Content-Type": "application/json",
},
body: JSON.stringify({
tag_name: TAG_NAME,
name: RELEASE_NAME,
body: RELEASE_BODY,
draft: DRAFT,
prerelease: PRERELEASE,
}),
});
if (!response.ok) {
const error = await response.json();
console.error("Error creating release:", error);
return;
}
const data = await response.json();
console.log("Release created successfully:", data.html_url);
}
createRelease();
Full Changelog: https://github.com/GeosWorl/GlobalToken/commits/v1.0.0