-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Expose package version in build #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| SKIP_PREFLIGHT_CHECK=true | ||
| HTTPS=true | ||
| REACT_APP_WEB3AUTH_NETWORK=testnet | ||
| REACT_APP_WEB3AUTH_CLIENTID=BKj3lr6GfN2CnvO4CIKo5fuoCg_TpHsAPK7R8lbl6kUlz0CAH_5mFNswScEb7M6szV4hd1Tkwa2oPZ9KiXJB-44 | ||
| REACT_APP_WEB3AUTH_CLIENTID=BKj3lr6GfN2CnvO4CIKo5fuoCg_TpHsAPK7R8lbl6kUlz0CAH_5mFNswScEb7M6szV4hd1Tkwa2oPZ9KiXJB-44 | ||
| REACT_APP_VERSION=${npm_package_version} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generate an actually useful version string (instead of just
|
||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
| <meta name="theme-color" content="#000000" /> | ||
| <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
| <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
| <meta name="version" content="%REACT_APP_VERSION%" /> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Finally, actually expose the more useful version in the front-end code. |
||
| </head> | ||
| <body> | ||
| <noscript>You need to enable JavaScript to run this app.</noscript> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the package version from
package.json.