Skip to content

Commit

Permalink
Keep package.json versions with a 'dev' string instead of actual vers…
Browse files Browse the repository at this point in the history
…ion in repo to prevent commit churn
  • Loading branch information
anoek committed Oct 14, 2024
1 parent 9148b5d commit 771ab6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 `; \
Expand Down
2 changes: 1 addition & 1 deletion engine/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "goban",
"version": "8.3.51",
"version": "dev",
"description": "",
"main": "build/goban.js",
"types": "build/src/index.d.ts",
Expand Down

0 comments on commit 771ab6a

Please sign in to comment.