Skip to content

Commit

Permalink
release: new version ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
biohazard999 committed Dec 14, 2022
1 parent aedf3fd commit f060ae2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .r-tool.json
Expand Up @@ -5,8 +5,7 @@
{ "command": "b" },
{ "command": "b", "args":"poke:version -s" },
{ "command": "yarn", "args": "changelog" },
{ "command": "git", "args": "add ."},
{ "command": "git", "args": "commit -m \"chore: new version %NEW_VERSION%\""},
{ "command": "b", "args": "commit:version -s"},
{ "command": "git", "args": "push"}
]
}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
## (2022-12-14)

* feat: try to use $SEMVER ([aedf3fd](https://github.com/xenial-io/Xenial.RTool/commit/aedf3fd))



## (2022-12-14)




Expand Down
9 changes: 8 additions & 1 deletion build/Program.cs
Expand Up @@ -17,11 +17,18 @@
Target("poke:version", DependsOn("test"), async () =>
{
var json = await File.ReadAllTextAsync("package.json");
json = PokeJson.AddOrUpdateJsonValue(json, "version", Environment.GetEnvironmentVariable("NEW_VERSION"));
json = PokeJson.AddOrUpdateJsonValue(json, "version", Environment.GetEnvironmentVariable("SEMVER"));
await File.WriteAllTextAsync("package.json", json);
}
);

Target("commit:version", async () =>
{
await RunAsync("git", $"add .");
await RunAsync("git", $"commit -m \"release: new version {Environment.GetEnvironmentVariable("SEMVER")}\"");
}
);

Target("deploy", async () =>
{
var files = Directory.EnumerateFiles("artifacts/nuget", "*.nupkg");
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "xenial.rtool",
"version": null,
"version": "ABC",
"main": "index.js",
"repository": "https://github.com/xenial-io/Xenial.RTool.git",
"author": "Manuel Grundner <m.grundner@delegate.at>",
Expand Down

0 comments on commit f060ae2

Please sign in to comment.