Skip to content

Commit

Permalink
Embed version when deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jul 9, 2022
1 parent 8356775 commit 3063e0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ jobs:

- uses: actions/checkout@v3

# embed version
- run: sed -i "s/const version = '0.0.0-α'/const version = '$VERSION'/" src/app.ts

- name: Compile
run: |
deno compile \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Change how your team works.
 


# tea/cli 0.3.4
# tea/cli 0.3.5

tea is a universal virtual‑environment manager:

Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const rawArgs = useArgs(Deno.args)
const { silent, verbose, magic, verbosity } = useFlags()

if (verbose) {
const version = '0.1.0' //FIXME
const version = '0.0.0-α'
console.log(`tea ${version}`)
}

Expand Down

0 comments on commit 3063e0b

Please sign in to comment.