mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-28 18:59:47 +02:00
23 lines
770 B
JavaScript
23 lines
770 B
JavaScript
'use strict';
|
|
|
|
const assert = require('assert');
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const runbook = fs.readFileSync(
|
|
path.resolve(__dirname, '..', '..', 'docs', 'releases', '2.2.0', 'launch-runbook.md'),
|
|
'utf8'
|
|
);
|
|
|
|
assert.match(runbook, /Affaan.*only release operator/i);
|
|
assert.match(runbook, /npm view ecc-universal dist-tags --json/);
|
|
assert.match(runbook, /ecc-universal@2\.1\.0/);
|
|
assert.match(runbook, /git tag -s v2\.2\.0/);
|
|
assert.match(runbook, /git push origin refs\/tags\/v2\.2\.0/);
|
|
assert.match(runbook, /npm dist-tag add ecc-universal@2\.1\.0 latest/);
|
|
assert.match(runbook, /staged.*registry.*latest/is);
|
|
assert.match(runbook, /do not unpublish/i);
|
|
assert.match(runbook, /rollback/i);
|
|
|
|
console.log('ECC 2.2 launch runbook: ok');
|