pegjs/tools/publish-dev/index.js

13 lines
249 B
JavaScript
Raw Normal View History

"use strict";
2019-04-18 08:59:02 +02:00
const publish = require( "./publish" );
if ( process.env.GITHUB_EVENT_NAME === "push" ) {
2019-03-20 22:57:26 +01:00
console.log( "Skipping publish because dev release's are only published on `git push`." );
2019-03-20 22:57:26 +01:00
process.exit( 0 );
}
2019-04-18 08:59:02 +02:00
publish( "pegjs" );