function onCallback( ) {
		pkg = pkgs.shift();
		if ( pkg ) {
			console.log( 'Now processing the following package: %s', pkg );
			dispatch( pkg, onCallback );
		}
	}
'
			]
		});
		if ( pkgs instanceof Error ) {
			throw pkgs;
		}
	}
	pkgs = pkgs.slice( START_PKG_INDEX, END_PKG_INDEX );
	for ( i = 0; i < pkgs.length; i++ ) {
		pkgs[ i ] = replace( pkgs[ i ], '@stdlib/', '' );
	}
	// Filter out unpublished packages:
	tmp = [];
	for ( i = 0; i < pkgs.length; i++ ) {
		if (
			!startsWith( pkgs[ i ], '_tools' ) &&
			!startsWith( pkgs[ i ], 'plot/' ) &&
			!startsWith( pkgs[ i ], 'strided/common' )
		) {
			tmp.push( pkgs[ i ] );
		}
	}
	pkgs = tmp;
	onlyToplevel = contains( argv, '--only-toplevel' );
	if ( onlyToplevel ) {
		tmp = [];
		for ( i = 0; i < pkgs.length; i++ ) {
			if ( !contains( pkgs[ i ], '/' ) ) {
				tmp.push( pkgs[ i ] );
			}
		}
		pkgs = tmp;
	}

	console.log( 'Triggering events for %d `stdlib` packages...', pkgs.length );
	pkg = pkgs.shift();

	dispatch( pkg, onCallback );

	/**
Callback invoked once workflow dispatch events have been created.

@private