Skip to content

Commit 1671c47

Browse files
committed
chore: release 0.0.2
1 parent 7bad5c3 commit 1671c47

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed

rust/examples/basic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "basic"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
edition = "2021"
55
description = "Basic example for VBARE (Versioned Binary Application Record Encoding), an extension to BARE with versioned schema evolution"
66
license = "MIT"

rust/vbare-compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license.workspace = true
77
description = "Compile-time code generation for VBARE (Versioned Binary Application Record Encoding), an extension to BARE with versioned schema evolution"
88

99
[dependencies]
10-
vbare-gen = { path = "../vbare-gen", version = "0.0.1" }
10+
vbare-gen = { path = "../vbare-gen", version = "0.0.2" }
1111
indoc.workspace = true
1212
prettyplease.workspace = true
1313
syn.workspace = true

scripts/release.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,24 @@ async function createAndPushCommit(version: string): Promise<void> {
476476
await runCommand('git', ['add', '--all'], repoRoot);
477477
await runCommand('git', ['commit', '-m', `chore: release ${version}`], repoRoot);
478478
await runCommand('git', ['push'], repoRoot);
479+
480+
await createGitHubRelease(version);
481+
}
482+
483+
async function createGitHubRelease(version: string): Promise<void> {
484+
console.log(`Creating GitHub release for v${version}`);
485+
486+
try {
487+
await runCommand(
488+
'gh',
489+
['release', 'create', `v${version}`, '--title', `v${version}`, '--generate-notes'],
490+
repoRoot
491+
);
492+
console.log(`GitHub release v${version} created successfully`);
493+
} catch (error) {
494+
console.error(`Failed to create GitHub release: ${error}`);
495+
throw error;
496+
}
479497
}
480498

481499
async function hasPendingChanges(): Promise<boolean> {

typescript/examples/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vbare/example-basic",
33
"private": true,
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"description": "Basic example: compile fixtures and migrate between versions",
66
"type": "module",
77
"scripts": {

typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vbare-workspace",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"license": "MIT",
55
"author": "Rivet Gaming, Inc. <[email protected]>",
66
"private": true,

typescript/vbare-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vbare/compiler",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Bare minimum script to compile a bare schema",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

typescript/vbare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vbare",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Versioned data handling for BARE schemas",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)