From 1e76b716eeeb53552c2a9a2035d08f1b9e4c471b Mon Sep 17 00:00:00 2001 From: Stanley Jones Date: Mon, 13 Feb 2023 14:52:03 -0800 Subject: [PATCH 1/2] feat: Expose package version in build --- .env | 3 ++- README.md | 10 ++++++++++ package.json | 4 +++- public/index.html | 1 + 4 files changed, 16 insertions(+), 2 deletions(-) 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..4da35ae1 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 && git push --tags" }, "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 @@ + From c6cede7eb5ff5ae1619ac89c165e4eb2252c6a91 Mon Sep 17 00:00:00 2001 From: Stanley Jones Date: Mon, 13 Feb 2023 15:11:06 -0800 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4da35ae1..a95dd789 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "prepare": "husky install", "test:e2e": "npx playwright test --config=./e2e/playwright.config.ts", "version": "git add -A", - "postversion": "git push && git push --tags" + "postversion": "git push --no-verify && git push --tags --no-verify" }, "dependencies": { "@beam-australia/react-env": "^3.1.1",