Release automation (#1720)

* Create autoamtic release script.

* Add changelog update date script.

* Improve release scripts.

* Apply suggestions from code review

Co-Authored-By: nventuro <nicolas.venturo@gmail.com>

* Apply suggestions from code review

Co-Authored-By: nventuro <nicolas.venturo@gmail.com>

* Remove moment dependency.
This commit is contained in:
Nicolás Venturo
2019-04-22 17:31:32 -03:00
committed by Francisco Giordano
parent 59f03f00c5
commit 412cdfd0be
5 changed files with 220 additions and 10 deletions

View File

@ -0,0 +1,16 @@
#!/usr/bin/env node
// Synchronizes ethpm.json version number with package.json.
// This is run automatically when npm version is run.
const fs = require('fs');
const cp = require('child_process');
const pkg = require('../../package.json');
const ethpm = require('../../ethpm.json');
ethpm.version = pkg.version;
fs.writeFileSync('ethpm.json', JSON.stringify(ethpm, null, 2) + '\n');
cp.execSync('git add ethpm.json');