chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:12:04 +08:00
commit 124b5f0e67
2918 changed files with 321047 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
name: QA
on:
pull_request:
branches:
- canary
- v3*
- "beta-*"
- "rc-*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Build packages
run: pnpm build
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Run ESLint
run: pnpm lint
types:
name: TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Run typecheck
run: pnpm typecheck
continuous-release:
name: Continuous Release
if: github.repository == 'heroui-inc/heroui'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout branch
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install
uses: ./.github/common-actions/install
- name: Build packages
run: pnpm build
- name: Release
run: pnpx pkg-pr-new publish --pnpm './packages/styles' './packages/react'
+69
View File
@@ -0,0 +1,69 @@
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
dry_run:
description: "Dry run (publish without actually uploading to npm)"
required: false
type: boolean
default: false
jobs:
release:
runs-on: ubuntu-latest
environment: npm-publish
timeout-minutes: 15
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install
uses: ./.github/common-actions/install
- name: Build packages
run: pnpm build
- name: Ensure npm supports trusted publishing
run: npm install -g npm@11
- name: Determine previous tag
id: prev-tag
run: |
PREV=$(git tag -l 'v*' --sort=-v:refname | grep -v "$(git describe --tags --exact-match 2>/dev/null || echo '')" | head -1)
echo "tag=${PREV:-}" >> $GITHUB_OUTPUT
echo "Previous tag: ${PREV:-none}"
- name: Create GitHub Release
if: ${{ !inputs.dry_run }}
run: npx changelogithub --from ${{ steps.prev-tag.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: Publish @heroui/styles
id: publish-styles
working-directory: packages/styles
run: |
mkdir -p "$RUNNER_TEMP/heroui-release"
PACKAGE_TARBALL="$(node -p "const pkg = require('./package.json'); pkg.name.replace('@', '').replace('/', '-') + '-' + pkg.version + '.tgz'")"
pnpm pack --pack-destination "$RUNNER_TEMP/heroui-release"
npm publish "$RUNNER_TEMP/heroui-release/$PACKAGE_TARBALL" --access public ${{ inputs.dry_run && '--dry-run' || '' }}
- name: Publish @heroui/react
if: steps.publish-styles.outcome == 'success'
working-directory: packages/react
run: |
mkdir -p "$RUNNER_TEMP/heroui-release"
PACKAGE_TARBALL="$(node -p "const pkg = require('./package.json'); pkg.name.replace('@', '').replace('/', '-') + '-' + pkg.version + '.tgz'")"
pnpm pack --pack-destination "$RUNNER_TEMP/heroui-release"
npm publish "$RUNNER_TEMP/heroui-release/$PACKAGE_TARBALL" --access public ${{ inputs.dry_run && '--dry-run' || '' }}
@@ -0,0 +1,50 @@
name: Trigger MCP Extraction on Vercel Deployment
on:
repository_dispatch:
types:
- vercel.deployment.success
- vercel.deployment.promoted
jobs:
trigger-extraction:
name: Trigger MCP Extraction
runs-on: ubuntu-latest
steps:
- name: Trigger Native MCP Extraction
if: |
github.event.client_payload.git.ref == 'v3' ||
github.event.client_payload.git.ref == 'refs/heads/v3'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MCP_DISPATCH_TOKEN }}
repository: heroui-inc/heroui-mcp
event-type: native-docs-deployed
client-payload: |
{
"environment": "production",
"deployment_url": "${{ github.event.client_payload.url }}",
"deployment_id": "${{ github.event.client_payload.id }}",
"git_ref": "${{ github.event.client_payload.git.ref }}",
"git_sha": "${{ github.event.client_payload.git.sha }}",
"triggered_by": "vercel_deployment"
}
- name: Trigger React MCP Extraction
if: |
github.event.client_payload.git.ref == 'v3' ||
github.event.client_payload.git.ref == 'refs/heads/v3'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MCP_DISPATCH_TOKEN }}
repository: heroui-inc/heroui-mcp
event-type: react-docs-deployed
client-payload: |
{
"environment": "production",
"deployment_url": "${{ github.event.client_payload.url }}",
"deployment_id": "${{ github.event.client_payload.id }}",
"git_ref": "${{ github.event.client_payload.git.ref }}",
"git_sha": "${{ github.event.client_payload.git.sha }}",
"triggered_by": "vercel_deployment"
}
+42
View File
@@ -0,0 +1,42 @@
name: Update Stats
on:
schedule:
# Runs every Monday at 00:00 UTC
- cron: "0 0 * * 1"
# Allow manual trigger
workflow_dispatch:
jobs:
update-stats:
name: Update Stats
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Update search metadata
run: pnpm update:search-meta
- name: Update GitHub info
run: pnpm update:github-info
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
commit-message: "chore(stats): update project statistics"
title: "chore(stats): 📊 Update project statistics"
body: |
This PR updates the project statistics including:
- Search metadata
- GitHub repository information
This is an automated PR generated weekly.
branch: chore/update-stats
base: main
delete-branch: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}