Skip to content

refactor(react-grab): keep HDR boost off plain-CSS overlay consumers #4287

refactor(react-grab): keep HDR boost off plain-CSS overlay consumers

refactor(react-grab): keep HDR boost off plain-CSS overlay consumers #4287

name: Publish Any Commit
on: [push, pull_request]
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Publish packages (retry on transient failures)
run: |
max_attempts=4
attempt=1
while [ "$attempt" -le "$max_attempts" ]; do
if pnpm dlx pkg-pr-new publish \
./packages/react-grab \
./packages/cli \
./packages/grab; then
exit 0
fi
if [ "$attempt" -eq "$max_attempts" ]; then
exit 1
fi
sleep_seconds=$((2 ** attempt))
echo "pkg-pr-new publish failed on attempt ${attempt}/${max_attempts}; retrying in ${sleep_seconds}s..."
sleep "$sleep_seconds"
attempt=$((attempt + 1))
done