Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Diff

on:
pull_request:
types: [opened, synchronize, reopened, closed]

jobs:
Build:
runs-on: ubuntu-latest

permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pnpm
run: |
npm install -g corepack@latest --force
corepack enable

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: 'pnpm'

- name: Install Dependencies and Build
run: |
pnpm install

- name: Build Demo Project
run: |
cd website
pnpm install
RSDOCTOR=1 pnpm run build

- name: Report Compressed Size
uses: web-infra-dev/rsdoctor-action@feat/no-baseline-report
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file_path: 'website/doc_build/web/rsdoctor-data.json'
target_branch: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }}
Loading
Loading