Merge pull request #445 from spotify/rugvip/ci-fixes

workflows: run lerna directly and fix master build + run build before tests locally
This commit is contained in:
Patrik Oldsberg
2020-04-02 12:09:16 +02:00
committed by GitHub
3 changed files with 32 additions and 13 deletions
+6 -5
View File
@@ -8,10 +8,11 @@
"start": "yarn build && yarn workspace example-app start",
"bundle": "yarn build && yarn workspace example-app bundle",
"build": "lerna run build",
"test": "cross-env CI=true lerna run test --since origin/master -- --coverage",
"test": "yarn build && lerna run test --since origin/master -- --coverage",
"lint": "lerna run lint --since origin/master --",
"create-plugin": "backstage-cli create-plugin",
"release": "if [ \"$(git symbolic-ref --short HEAD)\" = master ]; then echo \"don't try to release master\"; exit 1; else lerna version --no-push; fi",
"lint": "cross-env CI=true lerna run lint --since origin/master --",
"lerna": "lerna",
"storybook": "yarn workspace storybook start"
},
"workspaces": {
@@ -44,8 +45,8 @@
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --config ./prettier.config.js --list-different --write"
]
"*.{js,jsx,ts,tsx}": [
"prettier --config ./prettier.config.js --list-different --write"
]
}
}