From e245422d729712aa036a6ff6be45a5058e19d3e6 Mon Sep 17 00:00:00 2001 From: lyonsyonii Date: Thu, 21 Dec 2023 11:45:47 +0100 Subject: [PATCH 1/5] FIX: fixed preview action --- .github/workflows/preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 973a11f..419f274 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -21,6 +21,7 @@ jobs: teardown: true failOnError: true build: | + cd frontend npm install npm run build - name: Get the preview_url From ee4ba7ed603130a36c0efd0efe977b9be04dd8f2 Mon Sep 17 00:00:00 2001 From: lyonsyonii Date: Thu, 21 Dec 2023 11:55:50 +0100 Subject: [PATCH 2/5] FIX: fixed preview action --- .github/workflows/preview.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 419f274..eb9db2d 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -21,8 +21,6 @@ jobs: teardown: true failOnError: true build: | - cd frontend - npm install - npm run build + bash -c "cd frontend && npm install && npm run build" - name: Get the preview_url run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" \ No newline at end of file From a04be054efaec6e888c53db59e493834dee22996 Mon Sep 17 00:00:00 2001 From: lyonsyonii Date: Thu, 21 Dec 2023 12:02:32 +0100 Subject: [PATCH 3/5] FIX: fixed preview action --- .github/workflows/preview.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index eb9db2d..94b1c1d 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -12,6 +12,20 @@ jobs: pull-requests: write # allow surge-preview to create/update PR comments steps: - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: latest + cache: 'pnpm' + - name: Install dependencies + run: | + cd frontend + pnpm install + pnpm build - uses: afc163/surge-preview@v1 id: preview_step with: @@ -21,6 +35,6 @@ jobs: teardown: true failOnError: true build: | - bash -c "cd frontend && npm install && npm run build" + bash -c "echo Done" - name: Get the preview_url run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" \ No newline at end of file From e522680eee4a7e65ba4e2fca483bb1925a2e3450 Mon Sep 17 00:00:00 2001 From: lyonsyonii Date: Thu, 21 Dec 2023 12:02:44 +0100 Subject: [PATCH 4/5] FIX: fixed preview action --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 94b1c1d..ba07dfb 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -21,7 +21,7 @@ jobs: with: node-version: latest cache: 'pnpm' - - name: Install dependencies + - name: Install dependencies and Build run: | cd frontend pnpm install From aa5cf1a7ebd7256b5599c67e455979cb8c2ebc76 Mon Sep 17 00:00:00 2001 From: lyonsyonii Date: Thu, 21 Dec 2023 12:04:25 +0100 Subject: [PATCH 5/5] FIX: fixed preview action --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index ba07dfb..ed0dacc 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -11,7 +11,6 @@ jobs: permissions: pull-requests: write # allow surge-preview to create/update PR comments steps: - - uses: actions/checkout@v2 - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 with: @@ -21,6 +20,7 @@ jobs: with: node-version: latest cache: 'pnpm' + cache-dependency-path: frontend/pnpm-lock.yaml - name: Install dependencies and Build run: | cd frontend