Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dsinghvi/update-fdr-sdk-to-latest
Browse files Browse the repository at this point in the history
abvthecity authored Jun 6, 2024
2 parents 1e008c5 + 477c9ac commit 4a9cc16
Showing 4 changed files with 17 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-local-preview-bundle-dryrun.yml
Original file line number Diff line number Diff line change
@@ -26,7 +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 compile
pnpm --filter=@fern-ui/local-preview-bundle build
- name: Synthesize local preview bundle
run: pnpm --filter=@fern-ui/cdk run synth:dev2

@@ -44,6 +46,8 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: |
pnpm compile
pnpm --filter=@fern-ui/local-preview-bundle build
- name: Synthesize local preview bundle
run: pnpm --filter=@fern-ui/cdk run synth:prod
8 changes: 6 additions & 2 deletions .github/workflows/deploy-local-preview-bundle.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,9 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: ENABLE_SOURCE_MAPS=true pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: |
pnpm compile
ENABLE_SOURCE_MAPS=true pnpm --filter=@fern-ui/local-preview-bundle build
- name: Deploy local preview bundle
run: pnpm --filter=@fern-ui/cdk run deploy:dev2

@@ -47,6 +49,8 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: |
pnpm compile
pnpm --filter=@fern-ui/local-preview-bundle build
- name: Deploy local preview bundle
run: pnpm --filter=@fern-ui/cdk run deploy:prod
4 changes: 4 additions & 0 deletions packages/cdk/src/docs-fe-stack.ts
Original file line number Diff line number Diff line change
@@ -41,6 +41,10 @@ export class DocsFeStack extends Stack {
);

const local_preview_bundle_dist_zip = path.resolve(__dirname, "../../ui/local-preview-bundle/dist/out.zip");
if (!fs.existsSync(LOCAL_PREVIEW_BUNDLE_OUT_DIR) || !fs.lstatSync(LOCAL_PREVIEW_BUNDLE_OUT_DIR).isDirectory()) {
throw new Error(`Local preview bundle not found at ${LOCAL_PREVIEW_BUNDLE_OUT_DIR}`);
}

void zipFolder(LOCAL_PREVIEW_BUNDLE_OUT_DIR, local_preview_bundle_dist_zip).then(() => {
new BucketDeployment(this, "deploy-local-preview-bundle2", {
sources: [Source.asset(local_preview_bundle_dist_zip)],
1 change: 1 addition & 0 deletions servers/fdr/Dockerfile
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ COPY turbo.json turbo.json
COPY shared shared
COPY fern fern
# RUN pnpm turbo run compile --filter=@fern-platform/fdr
RUN pnpm --filter=@fern-api/fdr-sdk compile
RUN pnpm run compile --filter=@fern-platform/fdr

FROM base AS runner

0 comments on commit 4a9cc16

Please sign in to comment.