Skip to content

Commit

Permalink
Take latestTag from config context (allowing any value)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 20, 2022
1 parent 1e0f8f7 commit 9fe82ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/util/index.js
Expand Up @@ -47,10 +47,11 @@ module.exports.runTasks = async plugin => {

const name = (await plugin.getName()) || '__test__';
const latestVersion = (await plugin.getLatestVersion()) || '1.0.0';
const latestTag = plugin.config.getContext('latestTag');
const changelog = (await plugin.getChangelog(latestVersion)) || null;
const increment = getIncrement(plugin);

plugin.config.setContext({ name, latestVersion, latestTag: latestVersion, changelog });
plugin.config.setContext({ name, latestVersion, latestTag, changelog });

const { preRelease } = plugin.config.options;
const isPreRelease = Boolean(preRelease);
Expand Down

0 comments on commit 9fe82ed

Please sign in to comment.