From 95a34ab020df08d8e4a9b17ef127521b67647b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Wed, 26 Aug 2020 15:53:44 +0200 Subject: [PATCH] chore(release): check prod release based on `SHIPJS` env var --- build-css.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-css.js b/build-css.js index 46b7dca6..22a51126 100644 --- a/build-css.js +++ b/build-css.js @@ -15,8 +15,8 @@ function getBundleBanner(pkg) { const lastCommitHash = execSync('git rev-parse --short HEAD') .toString() .trim(); - const version = process.env.VERSION - ? process.env.VERSION + const version = process.env.SHIPJS + ? pkg.version : `${pkg.version} (UNRELEASED ${lastCommitHash})`; const authors = '© Algolia, Inc. and contributors';