Skip to content

Commit 683e9f6

Browse files
authored
Merge pull request #73 from thefrontside/meta-version
add ability to ask `pls` what its version is
2 parents ea53eaf + 64b82e9 commit 683e9f6

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/signoff.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
git config --global user.name "Frontside Jack"
3636
deno task rel:impact platformscript --pre=alpha | deno task changelog-entry $(deno task rel:next platformscript --pre=alpha) | cat - Changelog.md > Changelog.next.md
3737
mv Changelog.next.md Changelog.md
38+
echo ${{ steps.versions.outputs.next }} > version.json
3839
deno fmt
3940
git commit -am "prepare platformscript ${{ steps.versions.outputs.next }}"
4041

pls.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { parse as parseFlags } from "https://deno.land/std@0.159.0/flags/mod.ts";
2+
import VERSION from "./version.json" assert { type: "json" };
23

34
let flags = parseFlags(Deno.args, {
45
boolean: "version",
@@ -8,7 +9,7 @@ let flags = parseFlags(Deno.args, {
89
});
910

1011
if (flags.version) {
11-
console.log(`1.0.0`);
12+
console.log(VERSION);
1213
} else {
1314
console.log(`USAGE:
1415
pls [OPTIONS] [COMMAND]

version.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"0.0.0"

0 commit comments

Comments
 (0)