@@ -212,11 +212,10 @@ async function publishPackage(pkgName, version, runIfNotDry) {
212212 step ( `Publishing ${ pkgName } ...` ) ;
213213
214214 try {
215- await runIfNotDry (
216- 'yarn' ,
217- [ 'publish' , '--new-version' , version , '--tag' , getReleaseTag ( version ) , '--access' , 'public' ] ,
218- { cwd : distDir , stdio : 'pipe' } ,
219- ) ;
215+ await runIfNotDry ( 'npm' , [ 'publish' , '--tag' , getReleaseTag ( version ) , '--access' , 'public' ] , {
216+ cwd : distDir ,
217+ stdio : 'pipe' ,
218+ } ) ;
220219 console . log ( kleur . green ( `\n✅ Successfully published ${ pkgName } @${ version } ` ) ) ;
221220 } catch ( e ) {
222221 if ( /** @type {any } */ ( e ) . stderr . match ( / p r e v i o u s l y p u b l i s h e d / ) ) {
@@ -250,11 +249,10 @@ async function publishCDN(version) {
250249
251250 fs . writeFileSync ( cdnPkgPath , JSON . stringify ( packageJson , null , 2 ) ) ;
252251
253- await runIfNotDry (
254- 'yarn' ,
255- [ 'publish' , '--new-version' , version , '--tag' , getReleaseTag ( version ) , '--access' , 'public' ] ,
256- { cwd : cdnDir , stdio : 'pipe' } ,
257- ) ;
252+ await runIfNotDry ( 'npm' , [ 'publish' , '--tag' , getReleaseTag ( version ) , '--access' , 'public' ] , {
253+ cwd : cdnDir ,
254+ stdio : 'pipe' ,
255+ } ) ;
258256
259257 console . log ( kleur . green ( `\n✅ Successfully published @vidstack/cdn@${ version } ` ) ) ;
260258}
0 commit comments