Browse Source

Add optional NPM_TAG param in jenkins release

yogevbd 5 years ago
parent
commit
47464d7809
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/release.js

+ 1
- 1
scripts/release.js View File

@@ -9,7 +9,7 @@ const path = require('path');
9 9
 const isRelease = process.env.RELEASE_BUILD === 'true';
10 10
 
11 11
 const BRANCH = process.env.BRANCH;
12
-const VERSION_TAG = isRelease ? 'latest' : 'snapshot';
12
+const VERSION_TAG = process.env.NPM_TAG || isRelease ? 'latest' : 'snapshot';
13 13
 const VERSION_INC = 'patch';
14 14
 
15 15
 function run() {