#!/bin/sh # Release 7 rollout step 5: editor build into the live .next, then umtool build. Primary checkout on main. R=/home/user/Projects/yt-dlp-transcript-browser; T=${CLAUDE_JOB_DIR:?set CLAUDE_JOB_DIR}/tmp; REL=${REL:-r9} cd $R || exit 1 echo "START $(date +%T) $(git rev-parse --short HEAD) editor BUILD_ID before: $(cat editor/.next/BUILD_ID) umtool: $(cat umtool/.next/BUILD_ID)" find export/public -xtype l s=$(date +%s); pnpm --filter editor exec next build > $T/$REL-build-editor.log 2>&1; echo "editor_build_exit=$? $(( $(date +%s)-s ))s BUILD_ID $(cat editor/.next/BUILD_ID)" echo "client-s3 resolves: $(readlink -f editor/.next/node_modules/@aws-sdk/client-s3-* 2>/dev/null | head -1)" s=$(date +%s); (cd umtool && pnpm exec next build > $T/$REL-build-umtool.log 2>&1); echo "umtool_build_exit=$? $(( $(date +%s)-s ))s BUILD_ID $(cat umtool/.next/BUILD_ID)" echo "exit=0 $(date +%T)"