diff --git a/README.md b/README.md index fc24f45eb3e..8b4029e67ca 100644 --- a/README.md +++ b/README.md @@ -85,11 +85,9 @@ Open . ### 4. Build a release ``` bash -ENV=prod yarn release +yarn release ``` -ENV: we can release a version for `staging` or `prod`. Logseq will read the environment variable from `resources/config.edn` - ## Alternative: Docker based development environment ### 1. Fetch sources diff --git a/package.json b/package.json index 1b64aa60f14..cf25209f09c 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ }, "scripts": { "watch": "run-p gulp:build gulp:watch cljs:watch", - "release": "run-s gulp:build cljs:release", + "release": "ENV=prod run-s gulp:build cljs:release", + "release-staging": "ENV=staging run-s gulp:build cljs:release", "watch-app": "run-p gulp:watch cljs:watch-app", "release-app": "run-s gulp:build cljs:release-app", "release-publishing": "run-s gulp:build cljs:release-publishing",