fix(ci): isolate npm release configuration
This commit is contained in:
@@ -581,9 +581,15 @@ grep -Fq 'export PYTHONDONTWRITEBYTECODE=1' "$project_root/scripts/verify-schema
|
||||
|| fail "release wrapper does not disable Python bytecode"
|
||||
release_plan="$($gate_bash "$project_root/scripts/verify-schema-v3-only-release.sh" --dry-run)"
|
||||
first_command="$(printf '%s\n' "$release_plan" | sed -n '1p')"
|
||||
user_config_command="$(printf '%s\n' "$release_plan" | sed -n '2p')"
|
||||
global_config_command="$(printf '%s\n' "$release_plan" | sed -n '3p')"
|
||||
bootstrap_command="$(printf '%s\n' "$release_plan" | sed -n '4p')"
|
||||
[[ "$first_command" == 'export PYTHONDONTWRITEBYTECODE=1' ]] \
|
||||
|| fail "release dry-run does not print the Python bytecode export"
|
||||
[[ "$user_config_command" == 'export NPM_CONFIG_USERCONFIG=<private-empty-user-config>' ]] \
|
||||
|| fail "release dry-run does not isolate npm user configuration"
|
||||
[[ "$global_config_command" == 'export NPM_CONFIG_GLOBALCONFIG=<private-empty-global-config>' ]] \
|
||||
|| fail "release dry-run does not isolate npm global configuration"
|
||||
[[ "$bootstrap_command" == '/bin/bash scripts/verify-schema-v3-only.sh --bootstrap-trust-only' ]] \
|
||||
|| fail "release plan does not bootstrap trust before npm"
|
||||
printf '%s\n' "$release_plan" | grep -Fq '(cd backend && npm ci --ignore-scripts)' \
|
||||
|
||||
Reference in New Issue
Block a user