diff --git a/Makefile b/Makefile index f95b67a1..069c6322 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,10 @@ beta_npm: build publish-beta pack: build yarn pack +restore-dev-versions: + sed -i'.tmp' "s/\"version\": .*/\"version\": \"dev\",/" package.json + sed -i'.tmp' "s/\"version\": .*/\"version\": \"dev\",/" engine/package.json + publish-beta: build sed -i'.tmp' "s/\"version\": .*/\"version\": \"$(GIT_VERSION)-beta\",/" package.json sed -i'.tmp' "s/\"version\": .*/\"version\": \"$(GIT_VERSION)-beta\",/" engine/package.json @@ -52,6 +56,7 @@ publish-beta: build echo "" && \ echo "Published version $(GIT_VERSION)-beta to the beta tag successfully." && \ echo "" + @make restore-dev-versions publish-production: build sed -i'.tmp' "s/\"version\": .*/\"version\": \"$(GIT_VERSION)\",/" package.json @@ -63,6 +68,7 @@ publish-production: build echo "" && \ echo "Published version $(GIT_VERSION) successfully." && \ echo "" + @make restore-dev-versions notify: MSG=`git log -1 --pretty="%B" | sed s/\"//g | sed s/\'//g `; \ diff --git a/engine/package.json b/engine/package.json index f65d7bed..b897cace 100644 --- a/engine/package.json +++ b/engine/package.json @@ -1,6 +1,6 @@ { "name": "goban-engine", - "version": "8.3.51", + "version": "dev", "description": "", "main": "build/goban-engine.js", "types": "build/engine/index.d.ts", diff --git a/package.json b/package.json index 562b396f..cb08011f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "goban", - "version": "8.3.51", + "version": "dev", "description": "", "main": "build/goban.js", "types": "build/src/index.d.ts",