70bf21e064
Handle Changesets / Handle Changesets (push) Waiting to run
Semgrep OSS scan / semgrep-oss (push) Waiting to run
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
name: Prerelease
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- d1
|
|
- workflows
|
|
- next
|
|
- v3-maintenance
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
if: ${{ github.repository_owner == 'cloudflare' }}
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.head_ref != 'changeset-release/main' }}
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
persist-credentials: false
|
|
|
|
- name: Install Dependencies
|
|
# Defense in depth: do not pass Turbo remote cache credentials and
|
|
# disable the pnpm store cache so release builds always resolve
|
|
# packages from the registry and rebuild every task from source,
|
|
# rather than restoring from a (potentially poisoned) cache.
|
|
uses: ./.github/actions/install-dependencies
|
|
with:
|
|
disable-cache: "true"
|
|
|
|
- name: Build
|
|
run: pnpm build --filter="./packages/*"
|
|
env:
|
|
NODE_ENV: "production"
|
|
CI_OS: ${{ runner.os }}
|
|
# this is the "test/staging" key for sparrow analytics
|
|
SPARROW_SOURCE_KEY: "5adf183f94b3436ba78d67f506965998"
|
|
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
|
|
SENTRY_DSN: "https://9edbb8417b284aa2bbead9b4c318918b@sentry10.cfdata.org/583"
|
|
ALGOLIA_PUBLIC_KEY: ${{ secrets.ALGOLIA_PUBLIC_KEY }}
|
|
WRANGLER_PRERELEASE_LABEL: ${{ github.head_ref || github.ref_name }}
|
|
|
|
- name: Upload packages
|
|
run: node -r esbuild-register .github/prereleases/upload.mjs
|