diff --git a/.github/workflows/ui-preview.yaml b/.github/workflows/ui-preview.yaml index bf78b44629..2b5a059997 100644 --- a/.github/workflows/ui-preview.yaml +++ b/.github/workflows/ui-preview.yaml @@ -47,6 +47,8 @@ jobs: matrix: package: ${{ fromJson(needs.changes.outputs.packages) }} env: + # TODO: this appears to work even if package is not in packages/[package] + # (see the addition of docs for details). It's possible workign directory can be removd. WORKING_DIRECTORY: 'packages/${{matrix.package}}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' VERCEL_TOKEN: '${{ secrets.VERCEL_TOKEN }}' @@ -77,23 +79,22 @@ jobs: echo "VERCEL_PROJECT_ID=$TARGET_ID" >> $GITHUB_ENV - name: Install Vercel CLI run: npm install --global vercel@32.5.3 - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy to Vercel (Output Preview/Inspect Links) if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) != github.ref }} id: deploy run: | + vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + vercel build --token=${{ secrets.VERCEL_TOKEN }} export DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}) echo "DEPLOY_URL=$DEPLOY_URL" >> $GITHUB_ENV echo "::set-output name=url::$DEPLOY_URL" - name: Deploy to Vercel (Output Prod) if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} run: | - export DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --prod) - echo "DEPLOY_URL=$DEPLOY_URL" >> $GITHUB_ENV - echo "::set-output name=url::$DEPLOY_URL" + vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + vercel build --token=${{ secrets.VERCEL_TOKEN }} --prod + vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --prod + - name: Update PR Description if: ${{ github.event_name == 'pull_request' && format('refs/heads/{0}', github.event.repository.default_branch) != github.ref }} uses: actions/github-script@v3 diff --git a/docs/bridge/README.md b/docs/bridge/README.md index 76d817110e..afad5c80f5 100644 --- a/docs/bridge/README.md +++ b/docs/bridge/README.md @@ -5,7 +5,7 @@ This website is built using [Docusaurus](https://docusaurus.io/), a modern stati ## Generating API Docs -`yarn docusaurus gen-api-docs all`: +`yarn docusaurus gen-api-docs all`. ### Installation