|  | @@ -5,10 +5,10 @@ const fs = require('fs');
 | 
	
		
			
			| 5 | 5 |  const _ = require('lodash');
 | 
	
		
			
			| 6 | 6 |  
 | 
	
		
			
			| 7 | 7 |  // Workaround JS
 | 
	
		
			
			| 8 |  | -const release = !!!process.env.RELEASE_BUILD;
 | 
	
		
			
			|  | 8 | +const isRelease = process.env.RELEASE_BUILD === 'true';
 | 
	
		
			
			| 9 | 9 |  
 | 
	
		
			
			| 10 | 10 |  const ONLY_ON_BRANCH = 'origin/master';
 | 
	
		
			
			| 11 |  | -const VERSION_TAG = release ? 'latest' : 'snapshot';
 | 
	
		
			
			|  | 11 | +const VERSION_TAG = isRelease ? 'latest' : 'snapshot';
 | 
	
		
			
			| 12 | 12 |  const VERSION_INC = 'patch';
 | 
	
		
			
			| 13 | 13 |  
 | 
	
		
			
			| 14 | 14 |  function run() {
 | 
	
	
		
			
			|  | @@ -60,7 +60,7 @@ function versionTagAndPublish() {
 | 
	
		
			
			| 60 | 60 |    const currentPublished = findCurrentPublishedVersion();
 | 
	
		
			
			| 61 | 61 |    console.log(`current published version: ${currentPublished}`);
 | 
	
		
			
			| 62 | 62 |  
 | 
	
		
			
			| 63 |  | -  const version = release ? process.env.VERSION : `${currentPublished}-snapshot.${process.env.BUILD_ID}`;
 | 
	
		
			
			|  | 63 | +  const version = isRelease ? process.env.VERSION : `${currentPublished}-snapshot.${process.env.BUILD_ID}`;
 | 
	
		
			
			| 64 | 64 |    console.log(`Publishing version: ${version}`);
 | 
	
		
			
			| 65 | 65 |  
 | 
	
		
			
			| 66 | 66 |    tryPublishAndTag(version);
 |