MCPcopy
hub / github.com/electron/forge / smoketestAndCommit

Method smoketestAndCommit

tools/update-dependencies.js:82–92  ·  view source on GitHub ↗
(packageName = null)

Source from the content-addressed store, hash-verified

80 }
81
82 async smoketestAndCommit(packageName = null) {
83 const packageJSONs = await glob('packages/*/*/package.json');
84 await yarn('lint');
85 await yarn('build');
86 await git('add', 'package.json', 'yarn.lock', ...packageJSONs);
87 await git(
88 'commit',
89 '-m',
90 `build(${this.commitType}): upgrade ${packageName || this.name} to ${this.commitVersion}`,
91 );
92 }
93
94 async upgrade() {
95 if (this.isMajorVersionBump() || this.isMinorVersionBump()) {

Callers 1

mainFunction · 0.95

Calls 2

yarnFunction · 0.85
gitFunction · 0.85

Tested by

no test coverage detected