aboutsummaryrefslogblamecommitdiffstats
path: root/packages/assert/scripts/postpublish.js
blob: 16d67e03f39b414c6bae1a5dc25b339de07cdf34 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                        
                                               
 
                                        
 

                                                
                            
                                                                                             


                                                                                      
                          

                  
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 = postpublish_utils.getReleaseName(subPackageName, result.version);
        const assets = [];
        return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
    })
    .catch(function(err) {
        throw err;
    });