Skip to content

Commit

Permalink
merge from main
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava committed Dec 20, 2024
2 parents cfd9ffb + 3b7a74a commit 3c4522f
Show file tree
Hide file tree
Showing 4,120 changed files with 301,779 additions and 267,969 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

153 changes: 0 additions & 153 deletions .eslintrc.js

This file was deleted.

46 changes: 0 additions & 46 deletions .eslintrc.lint-staged.js

This file was deleted.

8 changes: 8 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Run this command to always ignore formatting commits in `git blame`
# git config blame.ignoreRevsFile .git-blame-ignore-revs

# https://github.com/fern-api/fern-platform/pull/1152 - reorganize mdx components
26d108f0317eca8fc63764b32695ef8d3e2b7f19

# https://github.com/fern-api/fern-platform/pull/1917 - formatting and reorganizing
6506692288b1102cea252a6fd3cc99afffe5b18a
5 changes: 2 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
* @dsinghvi
packages/template-resolver/** @armandobelardo
packages/ui/** @abvthecity
packages/ui/fern-dashboard/** @armandobelardo
packages/fern-docs/** @abvthecity
packages/parsers/** @RohinBhargava
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ jobs:
uses: ./.github/actions/install

- name: Build components
run: pnpm turbo --filter=@fern-ui/components compile
run: pnpm turbo --filter=@fern-docs/components compile

- name: Run Chromatic
uses: chromaui/action@latest
# Chromatic CI config: https://www.chromatic.com/docs/github-actions/
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/ui/components
workingDir: packages/fern-docs/components
onlyChanged: true

fern-generate:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs-bundle-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/docs-bundle (dev)
name: Deploy @fern-docs/bundle (dev)

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "app-dev.buildwithfern.com"
package: "@fern-ui/docs-bundle"
package: "@fern-docs/bundle"
environment: "production"
branch: main

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-docs-bundle-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Preview @fern-ui/docs-bundle
name: Preview @fern-docs/bundle

on:
pull_request:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "app.buildwithfern.com"
package: "@fern-ui/docs-bundle"
package: "@fern-docs/bundle"
environment: "preview"
branch: ${{ github.event.pull_request.head.ref || github.ref_name || github.ref }}

Expand Down Expand Up @@ -100,26 +100,26 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: bundle
path: packages/ui/docs-bundle/.next/analyze/__bundle_analysis.json
path: packages/fern-docs/bundle/.next/analyze/__bundle_analysis.json

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v6
if: success() && github.event.number
with:
workflow: deploy-docs-bundle-preview.yml
branch: ${{ github.event.pull_request.base.ref }}
path: packages/ui/docs-bundle/.next/analyze/base
path: packages/fern-docs/bundle/.next/analyze/base

# https://infrequently.org/2021/03/the-performance-inequality-gap/
- name: Compare with base branch bundle
if: success() && github.event.number
run: ls -laR packages/ui/docs-bundle/.next/analyze/base && pnpm --package=nextjs-bundle-analysis dlx compare
run: ls -laR packages/fern-docs/bundle/.next/analyze/base && pnpm --package=nextjs-bundle-analysis dlx compare

- name: Comment PR Bundle Analysis
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
filePath: packages/ui/docs-bundle/.next/analyze/__bundle_analysis_comment.txt
filePath: packages/fern-docs/bundle/.next/analyze/__bundle_analysis_comment.txt
comment_tag: bundle_analysis

deploy-dev:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-docs-bundle-prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/docs-bundle
name: Deploy @fern-docs/bundle

on:
push:
Expand Down Expand Up @@ -88,6 +88,8 @@ jobs:
if: success()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- name: Revalidate all app.buildwithfern.com deployments
run: pnpm vercel-scripts revalidate-all app.buildwithfern.com --token ${{ secrets.VERCEL_TOKEN }}

Expand All @@ -98,6 +100,8 @@ jobs:
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- name: Rollback on failure # remove this step once we switch back to pre-promotion testing
run: |
echo "E2E tests failed. Rolling back deployment"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-fdr-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ".github/workflows/publish-fdr-sdk.yml"
- "packages/fdr-sdk/**"
# Remove this once fdr is no longer needed in the generation
- "packages/ui/fern-docs-search-server/**"
- "packages/fern-docs/search-server/**"
- "pnpm-lock.yaml"

env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-fontawesome-cdn.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/fontawesome-cdn
name: Deploy @fern-docs/icons-cdn

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "icons.ferndocs.com"
package: "@fern-ui/fontawesome-cdn"
package: "@fern-docs/icons-cdn"
environment: "production"
branch: main

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy-local-preview-bundle-dryrun.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/local-preview-bundle (Dry Run)
name: Deploy @fern-docs/local-preview-bundle (Dry Run)

on:
pull_request:
Expand Down Expand Up @@ -26,9 +26,9 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: pnpm turbo --filter=@fern-docs/local-preview-bundle build
- name: Synthesize local preview bundle
run: pnpm --filter=@fern-ui/cdk run synth:dev2
run: pnpm --filter=@fern-platform/cdk run synth:dev2

prod:
runs-on: ubuntu-latest
Expand All @@ -44,6 +44,6 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: pnpm turbo --filter=@fern-docs/local-preview-bundle build
- name: Synthesize local preview bundle
run: pnpm --filter=@fern-ui/cdk run synth:prod
run: pnpm --filter=@fern-platform/cdk run synth:prod
Loading

0 comments on commit 3c4522f

Please sign in to comment.