MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / release

Function release

Bunoshfile.js:452–471  ·  view source on GitHub ↗
(releaseType = null)

Source from the content-addressed store, hash-verified

450 * @param {string} [releaseType] - "patch", "minor" or "major" to bump before releasing.
451 */
452export async function release(releaseType = null) {
453 task.stopOnFailures()
454 const packageInfo = JSON.parse(fs.readFileSync('package.json'))
455 if (releaseType) {
456 packageInfo.version = semver.inc(packageInfo.version, releaseType)
457 fs.writeFileSync('package.json', JSON.stringify(packageInfo))
458 await shell`git add package.json`
459 await shell`git commit -m "version bump"`
460 }
461 const version = packageInfo.version
462 await docs()
463 await def()
464 await publishSite()
465 await shell`git pull`
466 await shell`git tag ${version}`
467 await shell`git push origin 3.x --tags`
468 await shell`rm -rf docs/wiki/.git`
469 await shell`npm publish`
470 say('-- RELEASED --')
471}
472
473
474/**

Callers

nothing calls this directly

Calls 4

sayFunction · 0.85
docsFunction · 0.70
defFunction · 0.70
publishSiteFunction · 0.70

Tested by

no test coverage detected