Skip to content

Commit 4535cf6

Browse files
committed
chore: switch to npm for publishing
1 parent b58d1a6 commit 4535cf6

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.scripts/release.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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(/previously published/)) {
@@ -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

Comments
 (0)