Skip to content

Commit 8a7dcb9

Browse files
committed
Filter out unpublished packages
1 parent 9783f76 commit 8a7dcb9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/node_modules/@stdlib/_tools/scripts/trigger_workflow_events.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var createWorkflowDispatch = require( '@stdlib/_tools/github/dispatch-workflow'
3333
var readJSON = require( '@stdlib/fs/read-json' ).sync;
3434
var contains = require( '@stdlib/assert/contains' );
3535
var replace = require( '@stdlib/string/replace' );
36+
var startsWith = require( '@stdlib/string/starts-with' );
3637
var ENV = require( '@stdlib/process/env' );
3738

3839

@@ -119,6 +120,18 @@ function main() {
119120
for ( i = 0; i < pkgs.length; i++ ) {
120121
pkgs[ i ] = replace( pkgs[ i ], '@stdlib/', '' );
121122
}
123+
// Filter out unpublished packages:
124+
tmp = [];
125+
for ( i = 0; i < pkgs.length; i++ ) {
126+
if (
127+
!startsWith( pkgs[ i ], '_tools' ) &&
128+
!startsWith( pkgs[ i ], 'plot/' ) &&
129+
!startsWith( pkgs[ i ], 'strided/common' )
130+
) {
131+
tmp.push( pkgs[ i ] );
132+
}
133+
}
134+
pkgs = tmp;
122135
onlyToplevel = contains( argv, '--only-toplevel' );
123136
if ( onlyToplevel ) {
124137
tmp = [];

0 commit comments

Comments
 (0)