Skip to content

Commit

Permalink
fix(version): fix a bug in the workflow : version are mismatching bet…
Browse files Browse the repository at this point in the history
…ween tag and app
  • Loading branch information
mJehanno committed Mar 16, 2024
1 parent ec9cc81 commit b04b61b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/bin
node_modules
frontend/dist
.task/
1 change: 1 addition & 0 deletions .task/checksum/bumpTo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4cd158caa7d5c9068a354c8109306873
14 changes: 14 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'

tasks:
bumpTo:
sources:
- wails.json
- main.go
cmds:
- for: sources
cmd: sed -i -r 's/([0-9]*\.){2}[0-9]*/{{ .CLI_ARGS }}/g' {{ .ITEM }}
- ./bump-to.sh {{ .CLI_ARGS }}
- git add .
- git commit --amend --no-edit
- git tag v{{ .CLI_ARGS }}
3 changes: 3 additions & 0 deletions bump-to.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "sed -i -r 's,\"version\": \"([0-9]*\.){2}[0-9]*\",\"version\": \"$1\",g' frontend/package.json"
sed -i -r 's,"version": "([0-9]*\.){2}[0-9]*","version": "'$1'",g' frontend/package.json
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "frontend",
"private": true,
"version": "2.0.1",
"version": "2.0.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
)

var (
current = semver.MustParse("2.0.1")
current = semver.MustParse("2.0.2")
)

type Binder struct {
Expand Down
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"companyName": "mJehanno",
"productName": "mult-game",
"productVersion": "2.0.1",
"productVersion": "2.0.2",
"copyright": "Copyright @mJehanno",
"comments": "Built using Wails (https://wails.io)"
},
Expand Down

0 comments on commit b04b61b

Please sign in to comment.