create-cwa 2.0.0-alpha.48 → 2.0.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/smoke.sh +9 -0
package/package.json
CHANGED
package/smoke.sh
CHANGED
|
@@ -20,6 +20,15 @@ fail() {
|
|
|
20
20
|
exit 1
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
# A release commit names its own cwa-php-base before publish-php-base.yml has pushed it: skip, don't fail. GitLab shows exit 3 orange (allow_failure exit_codes).
|
|
24
|
+
base=$(sed -n 's/^ARG CWA_PHP_BASE=//p' "$ROOT/api/Dockerfile" | head -n 1)
|
|
25
|
+
if [ -n "$base" ] && ! out=$(docker buildx imagetools inspect "$base" 2>&1) && echo "$out" | grep -qi 'not found'; then
|
|
26
|
+
[ -z "${GITHUB_ACTIONS:-}" ] || echo "::warning::create-cwa smoke skipped: $base isn't published yet; re-run once publish-php-base.yml has pushed it"
|
|
27
|
+
echo "create-cwa smoke skipped: $base isn't published yet (a release commit before publish-php-base.yml). Re-run once it's pushed." >&2
|
|
28
|
+
[ -n "${GITLAB_CI:-}" ] && exit 3
|
|
29
|
+
exit 0
|
|
30
|
+
fi
|
|
31
|
+
|
|
23
32
|
if [ ! -f "$ROOT/packages/create-cwa/dist/index.js" ]; then
|
|
24
33
|
(cd "$ROOT/packages/create-cwa" && pnpm install --frozen-lockfile && pnpm run build) || fail "couldn't build the CLI"
|
|
25
34
|
fi
|