chrore: replace some yarn commands with npm

pull/4637/head^2
mehmet-erim 6 years ago
parent 9b4cc97c98
commit 44e9f26bff

@ -27,7 +27,7 @@ const publish = async () => {
try {
await fse.remove('../dist');
await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' });
await execa('npm', ['install'], { stdout: 'inherit', cwd: '../' });
await fse.rename('../lerna.version.json', '../lerna.json');

@ -24,9 +24,9 @@ $commands = (
"npm install",
"npm run publish-packages -- --nextVersion $Version --preview",
"cd ../../",
"yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish",
"yarn replace-with-tilde",
"yarn lerna exec 'npm publish --registry $Registry --tag preview'"
"npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish",
"npm run replace-with-tilde",
"npm run lerna -- exec 'npm publish --registry $Registry --tag preview'"
)
foreach ($command in $commands) {

@ -16,12 +16,12 @@ $commands = (
"npm install",
"npm run publish-packages -- --nextVersion $Version",
"cd ../../",
"yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish",
"yarn replace-with-tilde",
"yarn lerna exec 'npm publish --registry https://registry.npmjs.org'",
"yarn update:templates",
"yarn gulp:app",
"yarn gulp:module"
"npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish",
"npm run replace-with-tilde",
"npm run lerna -- exec 'npm publish --registry https://registry.npmjs.org'",
"npm run update:templates",
"npm run gulp:app",
"npm run gulp:module"
)
foreach ($command in $commands) {

Loading…
Cancel
Save