Skip to content

Commit

Permalink
build(version): bump dar-to-oar from 0.8.0 to 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Oct 21, 2024
1 parent 9850aad commit 04fb4f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ body:
- 0.6.0
- 0.7.0
- 0.8.0
- 0.9.0
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.8.0"
version = "0.9.0"
description = "DAR to OAR Converter"
categories = ["compilers", "games", "parsing"]
authors = ["SARDONYX-sard"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dar-to-oar",
"description": "Converter",
"version": "0.8.0",
"version": "0.9.0",
"license": "MIT",
"homepage": "https://github.com/SARDONYX-sard/dar-to-oar",
"private": true,
Expand Down
8 changes: 4 additions & 4 deletions tools/version_up.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,23 @@ function updatePackageJson(newVersion) {
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`);
}

const workSpaceRegExp = /\[workspace\.package\]\nversion = "(.*)"/;

/**
* @param {string} newVersion
*/
function updateCargoToml(newVersion) {
// biome-ignore lint/performance/useTopLevelRegex: <explanation>
const workSpaceRegExp = /\[workspace\.package\]\nversion = "(.*)"/;
let cargoToml = fs.readFileSync(cargoTomlPath, 'utf8');
cargoToml = cargoToml.replace(workSpaceRegExp, `[workspace.package]\nversion = "${newVersion}"`);
fs.writeFileSync(cargoTomlPath, cargoToml);
}

const issueRexExp = /options:\n((\s+- .*\n)+)/;

/**
* @param {string} newVersion
*/
function updateIssueTemplate(newVersion) {
// biome-ignore lint/performance/useTopLevelRegex: <explanation>
const issueRexExp = /options:\n((\s+- .*\n)+)/;
let issueTemplate = fs.readFileSync(issueTemplatePath, 'utf8');
const versionList = issueTemplate.match(issueRexExp)?.[1];
if (versionList == null) {
Expand Down

0 comments on commit 04fb4f3

Please sign in to comment.