- Allow to run semantic-release (via API) from anywhere passing the current working directory. - Allows to simplify the tests and to run them in parallel in both the core and plugins.
		
			
				
	
	
		
			7 lines
		
	
	
		
			282 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			282 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = (pluginConfig, {env, logger}) => {
 | |
|   console.log(`Console: Exposing token ${env.MY_TOKEN}`);
 | |
|   logger.log(`Log: Exposing token ${env.MY_TOKEN}`);
 | |
|   logger.error(`Error: Console token ${env.MY_TOKEN}`);
 | |
|   throw new Error(`Throw error: Exposing ${env.MY_TOKEN}`);
 | |
| };
 |