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
This commit is contained in:
Iain Sproat
2024-04-19 16:58:26 +01:00
committed by GitHub
parent 8cded7c933
commit 088a49eb3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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