2022-08-24 19:25:27 +02:00
|
|
|
#!/usr/bin/env node
|
2021-02-04 19:15:23 +01:00
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
2021-05-10 23:16:03 +02:00
|
|
|
const { version } = require('../package.json');
|
2020-01-09 04:34:58 +01:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
const changelog = fs.readFileSync(
|
|
|
|
path.join(__dirname, '..', 'CHANGELOG.md'),
|
|
|
|
'utf8',
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2016-10-04 21:38:58 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const log = changelog.split(version)[1].split('##')[0].trim();
|
|
|
|
const msg = `*MetaMask ${version}* now published! It should auto-update soon!\n${log}`;
|
2016-10-04 21:38:58 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
console.log(msg);
|