for #2543 BREAKING CHANGE: semantic-release is now ESM-only. since it is used through its own executable, the impact on consuming projects should be minimal BREAKING CHANGE: references to plugin files in configs need to include the file extension because of executing in an ESM context
7 lines
279 B
JavaScript
7 lines
279 B
JavaScript
export default (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}`);
|
|
}
|