pegjs/tools/publish-dev/index.js
2019-09-29 06:40:07 +01:00

13 lines
249 B
JavaScript

"use strict";
const publish = require( "./publish" );
if ( process.env.GITHUB_EVENT_NAME !== "push" ) {
console.log( "Skipping publish because dev release's are only published on `git push`." );
process.exit( 0 );
}
publish( "pegjs" );