diff --git a/.env b/.env index f631f4ff..b361c6d7 100644 --- a/.env +++ b/.env @@ -1,4 +1,5 @@ SKIP_PREFLIGHT_CHECK=true HTTPS=true REACT_APP_WEB3AUTH_NETWORK=testnet -REACT_APP_WEB3AUTH_CLIENTID=BKj3lr6GfN2CnvO4CIKo5fuoCg_TpHsAPK7R8lbl6kUlz0CAH_5mFNswScEb7M6szV4hd1Tkwa2oPZ9KiXJB-44 \ No newline at end of file +REACT_APP_WEB3AUTH_CLIENTID=BKj3lr6GfN2CnvO4CIKo5fuoCg_TpHsAPK7R8lbl6kUlz0CAH_5mFNswScEb7M6szV4hd1Tkwa2oPZ9KiXJB-44 +REACT_APP_VERSION=${npm_package_version} diff --git a/README.md b/README.md index 9c175c65..8105344c 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,13 @@ available. - Lifted web3auth dashboard: https://dashboard.web3auth.io/ - Users dashboard: https://app.openlogin.com/ + +## Version + +Alberto is currently pre-release alpha software, so incrementing the version +(which will trigger creating a GitHub Release) is best accomplished with the +following command: + +```sh +npm version prerelease --preid alpha +``` diff --git a/package.json b/package.json index c6987220..a95dd789 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "eject": "react-scripts eject", "test": "react-scripts test", "prepare": "husky install", - "test:e2e": "npx playwright test --config=./e2e/playwright.config.ts" + "test:e2e": "npx playwright test --config=./e2e/playwright.config.ts", + "version": "git add -A", + "postversion": "git push --no-verify && git push --tags --no-verify" }, "dependencies": { "@beam-australia/react-env": "^3.1.1", diff --git a/public/index.html b/public/index.html index 3828b197..c82004b3 100644 --- a/public/index.html +++ b/public/index.html @@ -11,6 +11,7 @@ +