packages/app: rename build script to bundle and only run in CI when app changed

This commit is contained in:
Patrik Oldsberg
2020-03-27 14:31:42 +01:00
parent 140cd7e4db
commit ec28ed8e2a
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -43,5 +43,7 @@ jobs:
- run: yarn lint
- run: yarn build
- run: yarn test
- name: yarn bundle, if app was changed
run: git diff --quiet origin/master HEAD -- packages/app || yarn bundle
- name: verify storybook
run: yarn workspace storybook build-storybook
+1
View File
@@ -6,6 +6,7 @@
},
"scripts": {
"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",
"create-plugin": "backstage-cli create-plugin",
+1 -1
View File
@@ -26,7 +26,7 @@
},
"scripts": {
"start": "backstage-cli app:serve",
"build": "backstage-cli app:build",
"bundle": "backstage-cli app:build",
"test": "backstage-cli test",
"test:e2e": "start-server-and-test start http://localhost:3000 cy:dev",
"test:e2e:ci": "start-server-and-test start http://localhost:3000 cy:run",