Files
tailwindcss/.github/workflows/aphrody-upstream-sync.yml
T
aphrody-dev 2e23bfcfc1 fix(aphrody): CI sur le Bun du fork, compileStream sans TextDecoderStream
- action .github/actions/setup-bun : installe la release aphrody-labs/bun nommée par
  packageManager (bun@1.4.3-aphrody.2) ; ci, release et upstream-sync l'utilisent au lieu de Bun latest
- compileStream : un seul TransformStream qui décode avec TextDecoder (stream: true) ;
  corrige l'erreur TS2345 du build dts (TextDecoderStream vs ReadableWritablePair<string, Uint8Array>)
  qui cassait la CI ; tests : caractère multi-octet coupé entre deux chunks, rejet sur CSS invalide
- test-preload : avertit aussi quand addSnapshotSerializer lève « Not implemented »
2026-10-09 04:14:25 +02:00

42 lines
1.2 KiB
YAML

name: Aphrody upstream sync
# Merges tailwindlabs/tailwindcss main into the fork's main every 6 hours and
# keeps it on Bun (scripts/aphrody/sync-upstream.ts). A conflict beyond the
# Bun rewrite fails the run and leaves main untouched.
permissions:
contents: read
on:
schedule:
- cron: '23 */6 * * *'
workflow_dispatch:
concurrency:
group: aphrody-upstream-sync
cancel-in-progress: false
jobs:
sync:
if: github.repository == 'aphrody-labs/tailwindcss'
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
steps:
# GITHUB_TOKEN cannot push merges that touch .github/workflows; a token
# with the `workflow` scope goes in APHRODY_SYNC_TOKEN.
- uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
token: ${{ secrets.APHRODY_SYNC_TOKEN || github.token }}
- uses: ./.github/actions/setup-bun
- name: Merge upstream
run: |
git config user.name "aphrody-dev"
git config user.email "contact@aphrody.com"
git remote add upstream https://github.com/tailwindlabs/tailwindcss.git
bun test scripts/aphrody/aphrody.test.ts
bun scripts/aphrody/sync-upstream.ts --push --no-index