Skip to content

Remove no-build from preview deploy options #198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all 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
7 changes: 3 additions & 4 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }} \
Expand Down Expand Up @@ -81,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
Expand Down