packages/dangerfile/index.js
async function run() {
	try {
		await execute('./node_modules/.bin/danger ci', { pipe: true });
		return false;
	} catch (error) {
		// don't throw yet
	}

	await execute('npm i danger --no-save', { pipe: true });
	await execute('./node_modules/.bin/danger ci', { pipe: true });
	return true;
}
async function run() {
	try {
		await execute('./node_modules/.bin/danger ci', { pipe: true });
		return false;
	} catch (error) {
		// don't throw yet
	}

	await execute('npm i danger --no-save', { pipe: true });
	await execute('./node_modules/.bin/danger ci', { pipe: true });
	return true;
}
async function run ( ) { try { await execute ( './node_modules/.bin/danger ci' , { pipe : true } ) ; return false ; } catch ( error ) { // don't throw yet } await execute ( 'npm i danger --no-save' , { pipe : true } ) ; await execute ( './node_modules/.bin/danger ci' , { pipe : true } ) ; return true ; }
Install danger and run it
@return {Boolean}
Install danger and run it