frontend/.pnpm-store/v3/files/1b/01b3fa6577b776bd79fdb46e6902e1373f3e3f7809e094d2feea478f869b05b4c96aa68a7ca9f4f56afc1b90a3f80a9fd1ed88e3bf8f0c7ea8f0f12e779886

37 lines
1.5 KiB
Plaintext

import Plugin from '../../lib/plugin/Plugin.js';
class ContextPlugin extends Plugin {
init() {
const context = this.config.getContext();
this.exec(`echo ${context.version.isPreRelease}`);
this.exec('echo ${version.isPreRelease}');
}
beforeBump() {
const context = this.config.getContext();
this.exec(`echo ${context.name} ${context.repo.owner} ${context.latestVersion} ${context.version}`);
this.exec('echo ${name} ${repo.owner} ${latestVersion} ${version}');
}
bump(version) {
const repo = this.config.getContext('repo');
this.exec(`echo ${repo.owner} ${repo.project} ${repo.repository} ${version}`);
this.exec('echo ${repo.owner} ${repo.project} ${repo.repository} ${version}');
}
beforeRelease() {
const { repo, tagName } = this.config.getContext();
this.exec(`echo ${repo.owner} ${repo.project} ${repo.repository} ${tagName}`);
this.exec('echo ${repo.owner} ${repo.project} ${repo.repository} ${tagName}');
}
release() {
const { repo, latestVersion, version, tagName } = this.config.getContext();
this.exec(`echo ${repo.project} ${latestVersion} ${version} ${tagName}`);
this.exec('echo ${repo.project} ${latestVersion} ${version} ${tagName}');
}
afterRelease() {
const { repo, latestVersion, version, tagName } = this.config.getContext();
this.exec(`echo ${repo.project} ${latestVersion} ${version} ${tagName}`);
this.exec('echo ${repo.project} ${latestVersion} ${version} ${tagName}');
}
}
export default ContextPlugin;