Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do app versioning in create react app?

I need to display version of my react app in the footer in x.y.z format.

I need this version to increment every time I deploy the app by being provided a choice if I want to increment x or y or z.

How do I achieve this? :)

like image 867
Vinay Sharma Avatar asked Jan 30 '20 02:01

Vinay Sharma


People also ask

How do I add a specific version of a create React app?

First, go to the package. json file and change the version of react , react-dom , and react-scripts to the desired version. Next, clear the node_modules and the package-lock. json file.

What is the latest version of create React app?

v5. 0.0 (2021-12-14)

Do I have to install React app again every time I start a new project?

You will have to install it separately for each project.


1 Answers

To bump the version of your app you can use npm version.

For example:

npm version minor
like image 164
Bertrand P Avatar answered Nov 04 '22 16:11

Bertrand P