File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 78
78
NPM_TOKEN_POLYFILL : ${{secrets.NPM_TOKEN_POLYFILL}}
79
79
NPM_TOKEN_REMOTE_CONFIG : ${{secrets.NPM_TOKEN_REMOTE_CONFIG}}
80
80
NPM_TOKEN_REMOTE_CONFIG_TYPES : ${{secrets.NPM_TOKEN_REMOTE_CONFIG_TYPES}}
81
+ NPM_TOKEN_RULES_UNIT_TESTING : ${{secrets.NPM_TOKEN_RULES_UNIT_TESTING}}
81
82
NPM_TOKEN_STORAGE : ${{secrets.NPM_TOKEN_STORAGE}}
82
83
NPM_TOKEN_STORAGE_TYPES : ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
83
84
NPM_TOKEN_TESTING : ${{secrets.NPM_TOKEN_TESTING}}
Original file line number Diff line number Diff line change @@ -90,15 +90,6 @@ async function publishPackage(pkg: string) {
90
90
try {
91
91
const path = await mapPkgNameToPkgPath ( pkg ) ;
92
92
93
- const { private : isPrivate } = JSON . parse (
94
- await readFile ( `${ path } /package.json` , 'utf8' )
95
- ) ;
96
-
97
- /**
98
- * Skip private packages
99
- */
100
- if ( isPrivate ) return ;
101
-
102
93
/**
103
94
* publish args
104
95
*/
@@ -134,9 +125,20 @@ async function publishToNpm(updatedPkgs: string[]) {
134
125
* Can't require here because we have a cached version of the required JSON
135
126
* in memory and it doesn't contain the updates
136
127
*/
137
- const { version } = JSON . parse (
128
+ const { version, private : isPrivate } = JSON . parse (
138
129
await readFile ( `${ path } /package.json` , 'utf8' )
139
130
) ;
131
+
132
+ /**
133
+ * Skip private packages
134
+ */
135
+ if ( isPrivate ) {
136
+ return {
137
+ title : `Skipping private package: ${ pkg } .` ,
138
+ task : ( ) => { }
139
+ } ;
140
+ }
141
+
140
142
return {
141
143
title : `📦 ${ pkg } @${ version } ` ,
142
144
task : ( ) => publishPackage ( pkg )
You can’t perform that action at this time.
0 commit comments