Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ typecheck:
interruptible: true
script:
- yarn
- yarn build
- yarn typecheck
- scripts/cli typecheck test/apps/vanilla
- scripts/cli typecheck test/e2e
Expand All @@ -165,7 +164,6 @@ build-and-lint:
interruptible: true
script:
- yarn
- yarn build
- yarn lint
- node scripts/check-packages.ts

Expand Down Expand Up @@ -613,7 +611,6 @@ check-expired-telemetry-scheduled:
- $TARGET_TASK_NAME == "check-expired-telemetry"
script:
- yarn
- yarn build
- MONITOR_UNTIL_COMMENT_EXPIRED_LEVEL=error yarn lint

check-expired-telemetry-scheduled-failure:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"type": "module",
"scripts": {
"postinstall": "scripts/cli init_submodule",
"postinstall": "scripts/cli init_submodule && scripts/cli ci_build_and_pack",
"build": "yarn workspaces foreach --all --parallel --topological run build",
"build:bundle": "yarn workspaces foreach --all --parallel run build:bundle",
"build:apps": "node scripts/build/build-test-apps.ts",
Expand Down
10 changes: 10 additions & 0 deletions scripts/cli
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ cmd_check_server_side_rendering_compatibility () {
yarn compat:ssr || fail 'server side rendering compatibility broken'
}

# in CI, build and pack after install to allow renovate to install test apps
cmd_ci_build_and_pack () {
if [[ -z "${CI+x}" ]]; then
exit 0
else
yarn build
yarn run pack
fi
}

fail () {
echo
echo "❌ ${1}"
Expand Down