aboutsummaryrefslogblamecommitdiffstats
path: root/packages/tslint-config/scripts/postpublish.js
blob: 08458f038fe7256f123aa190d0ca00212b09cda8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                                                        
                                               
 
                                        









                                                                                      
const postpublish_utils = require('../../../scripts/postpublish_utils');
const packageJSON = require('../package.json');

const subPackageName = packageJSON.name;

postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
    .then(function(result) {
        const releaseName = subPackageName + ' v' + result.version;
        const assets = [];
        return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
    })
    .catch (function(err) {
        throw err;
    });