From db3d74dd7a4eeb935528be0ca5898850f1c29f0a Mon Sep 17 00:00:00 2001 From: emrberk Date: Mon, 16 Jun 2025 12:30:56 +0300 Subject: [PATCH 1/2] Remove no-build from preview deploy options --- .github/workflows/preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 39d73d13..d551e886 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -36,7 +36,7 @@ jobs: env: CONTEXT: deploy-preview NETLIFY: true - run: yarn build --out-dir build/docs + run: yarn prebuild && yarn build --out-dir build/docs - name: Deploy to Netlify id: netlify @@ -46,7 +46,6 @@ jobs: run: | PREVIEW_URL=$(netlify deploy \ --dir=build \ - --no-build \ --auth=$NETLIFY_AUTH_TOKEN \ --site=$NETLIFY_SITE_ID \ --alias=preview-${{ github.event.pull_request.number }} \ From 1659f9e2e9f50725b8f2b47f8e7c31f69098287b Mon Sep 17 00:00:00 2001 From: emrberk Date: Mon, 16 Jun 2025 13:43:02 +0300 Subject: [PATCH 2/2] update node version --- .github/workflows/preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index d551e886..df74561e 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -23,7 +23,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "18" + node-version: "22" cache: "yarn" - name: Install dependencies @@ -80,7 +80,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "18" + node-version: "22" cache: "yarn" - name: Install dependencies