Skip to content

Commit d20837f

Browse files
authored
πŸ‘· Ensure to have tarballs built at install (#4019)
* πŸ‘· Ensure to have packages tarball after install to allow renovate to install test apps * remove unnecessary build * πŸ‘Œ build and pack only for CI
1 parent 32e3655 commit d20837f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

β€Ž.gitlab-ci.ymlβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ typecheck:
153153
interruptible: true
154154
script:
155155
- yarn
156-
- yarn build
157156
- yarn typecheck
158157
- scripts/cli typecheck test/apps/vanilla
159158
- scripts/cli typecheck test/e2e
@@ -165,7 +164,6 @@ build-and-lint:
165164
interruptible: true
166165
script:
167166
- yarn
168-
- yarn build
169167
- yarn lint
170168
- node scripts/check-packages.ts
171169

@@ -613,7 +611,6 @@ check-expired-telemetry-scheduled:
613611
- $TARGET_TASK_NAME == "check-expired-telemetry"
614612
script:
615613
- yarn
616-
- yarn build
617614
- MONITOR_UNTIL_COMMENT_EXPIRED_LEVEL=error yarn lint
618615

619616
check-expired-telemetry-scheduled-failure:

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"type": "module",
1212
"scripts": {
13-
"postinstall": "scripts/cli init_submodule",
13+
"postinstall": "scripts/cli init_submodule && scripts/cli ci_build_and_pack",
1414
"build": "yarn workspaces foreach --all --parallel --topological run build",
1515
"build:bundle": "yarn workspaces foreach --all --parallel run build:bundle",
1616
"build:apps": "node scripts/build/build-test-apps.ts",

β€Žscripts/cliβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,16 @@ cmd_check_server_side_rendering_compatibility () {
9191
yarn compat:ssr || fail 'server side rendering compatibility broken'
9292
}
9393

94+
# in CI, build and pack after install to allow renovate to install test apps
95+
cmd_ci_build_and_pack () {
96+
if [[ -z "${CI+x}" ]]; then
97+
exit 0
98+
else
99+
yarn build
100+
yarn run pack
101+
fi
102+
}
103+
94104
fail () {
95105
echo
96106
echo "❌ ${1}"

0 commit comments

Comments
Β (0)