From 088a49eb3ae7d2ffd8a586fe8ae752cbcd850e51 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:58:26 +0100 Subject: [PATCH] fix(circleci): update deprecated wrangler command (#2221) * fix(circleci): viewer-sandbox should be published on every commit to main * fix(circleci): remove dependency of publish-cloudflare-pages to test-ui-components * do not install globally to prevent permissions issue * fix(circleci): install wrangler using yarn * fix(circleci): use npx wrangler rather than installing it * fix(circleci): install wrangler as a dev dependency * fix(circleci): install wrangler as a dev dependency * fix path * fix(circleci): update deprecated wrangler command - update directory --- .circleci/config.yml | 2 +- .circleci/publish_cloudflare_pages.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cfd66c943..c1ea176c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1025,4 +1025,4 @@ jobs: command: ./.circleci/publish_cloudflare_pages.sh environment: CLOUDFLARE_PAGES_PROJECT_NAME: viewer - VIEWER_SANDBOX_DIR_PATH: ./packages/viewer-sandbox + VIEWER_SANDBOX_DIR_PATH: packages/viewer-sandbox diff --git a/.circleci/publish_cloudflare_pages.sh b/.circleci/publish_cloudflare_pages.sh index 21874f5b0..d9937f124 100755 --- a/.circleci/publish_cloudflare_pages.sh +++ b/.circleci/publish_cloudflare_pages.sh @@ -7,5 +7,5 @@ CLOUDFLARE_PAGES_PROJECT_NAME="${CLOUDFLARE_PAGES_PROJECT_NAME:-"viewer"}" VIEWER_SANDBOX_DIR_PATH="${VIEWER_SANDBOX_DIR_PATH:-"packages/viewer-sandbox"}" pushd "${GIT_ROOT}/${VIEWER_SANDBOX_DIR_PATH}" -yarn wrangler pages publish "${GIT_ROOT}/${VIEWER_SANDBOX_DIR_PATH}/dist" --project-name="${CLOUDFLARE_PAGES_PROJECT_NAME}" +yarn wrangler pages deploy "${GIT_ROOT}/${VIEWER_SANDBOX_DIR_PATH}/dist" --project-name="${CLOUDFLARE_PAGES_PROJECT_NAME}" popd