From 99f71a2f99511ae90700247c0ff04085e872aa6c Mon Sep 17 00:00:00 2001 From: Joao Maio <10330349+JMaio@users.noreply.github.com> Date: Fri, 25 Dec 2020 23:37:34 +0000 Subject: [PATCH] fix(versioning): use git describe for version info --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3c2a255..7f967e1 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,8 @@ "web-vitals": "^1.0.1" }, "scripts": { - "start": "cross-env REACT_APP_GIT_SHA=$(git rev-parse --short HEAD) react-scripts start", - "build": "cross-env REACT_APP_GIT_SHA=$(git rev-parse --short HEAD) react-scripts build", + "start": "cross-env REACT_APP_GIT_SHA=$(git describe) react-scripts start", + "build": "cross-env REACT_APP_GIT_SHA=$(git describe) react-scripts build", "build:ci": "cross-env CI=true yarn build", "build:localhost": "cross-env PUBLIC_URL='.' react-scripts build", "test": "react-scripts test", @@ -86,4 +86,4 @@ "lint-staged": { "./src/**/*.{js,jsx,ts,tsx}": "pretty-quick" } -} +} \ No newline at end of file