Skip to content

perf(sdk): optimize devbox creation wait strategy with exponential #108

perf(sdk): optimize devbox creation wait strategy with exponential

perf(sdk): optimize devbox creation wait strategy with exponential #108

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main, master]
push:
branches: [main, master]
workflow_dispatch:
jobs:
test:
strategy:
matrix:
node: ["22.x"]
platform: [ubuntu-latest]
name: Node v${{matrix.node}} ((${{matrix.platform}}))
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.0
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
cache: 'pnpm'
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: lint code
run: pnpm run lint
- name: typecheck
run: pnpm run typecheck
- name: build project
run: pnpm run build
release-preview:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.0
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'pnpm'
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: build project
run: pnpm run build
- name: release preview with pkg-pr-new
working-directory: packages/sdk
run: pnpm dlx pkg-pr-new publish --force
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_SHA: ${{ github.sha }}