From a1a379eb102c832ba213fe70148c58e41ded12ed Mon Sep 17 00:00:00 2001 From: Shine Li Date: Fri, 26 Jul 2024 09:43:16 +1000 Subject: [PATCH] add checks for checkout directory --- .github/workflows/build-lint-typecheck-test.yaml | 2 +- .github/workflows/publish.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-lint-typecheck-test.yaml b/.github/workflows/build-lint-typecheck-test.yaml index b84fccbb1c..0a74409582 100644 --- a/.github/workflows/build-lint-typecheck-test.yaml +++ b/.github/workflows/build-lint-typecheck-test.yaml @@ -59,7 +59,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.ref }} fetch-depth: 0 - - name: Setup + - name: setup uses: ./.github/actions/setup - name: Lint diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b034ef6195..badc90b35d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -105,6 +105,7 @@ jobs: run: | export NODE_OPTIONS=--max-old-space-size=6144 && RELEASE_TYPE=${{ env.RELEASE_TYPE }} yarn build ls -l ./sdk/dist/browser/checkout || echo 1 + [ -d "./sdk/dist/browser/checkout" ] || { echo "Error: Directory does not exist." && exit 1; } - name: Typecheck run: yarn typecheck