chore(prettier): full repo linting and code reformatting once and for all (#3627)
This commit is contained in:
1 parent
01500a2d4c
commit
9045ddaedc
656 files changed
+21737
-20628
No files matched your search
+2
-12
@@ -1,24 +1,14 @@
|
||||
import { execa } from 'execa';
|
||||
|
||||
async function run() {
|
||||
const { stdout: branchName } = await execa('git', [
|
||||
'rev-parse',
|
||||
'--abbrev-ref',
|
||||
'HEAD',
|
||||
]);
|
||||
const { stdout: branchName } = await execa('git', ['rev-parse', '--abbrev-ref', 'HEAD']);
|
||||
|
||||
// using the environment variable NPM_TOKEN, create a .npmrc file
|
||||
// and set the token to the value of the environment variable
|
||||
// Publishing each package, if on master/main branch publish beta versions
|
||||
// otherwise publish latest
|
||||
if (branchName === 'release') {
|
||||
await execa('npx', [
|
||||
'lerna',
|
||||
'publish',
|
||||
'from-package',
|
||||
'--no-verify-access',
|
||||
'--yes',
|
||||
]);
|
||||
await execa('npx', ['lerna', 'publish', 'from-package', '--no-verify-access', '--yes']);
|
||||
} else {
|
||||
await execa('npx', [
|
||||
'lerna',
|
||||
|
||||
Reference in new issue
Block a user