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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user