From 3d90bcac7a5f4d044d8796e21f0068e857f26d39 Mon Sep 17 00:00:00 2001 From: Nicole Thoen Date: Thu, 10 Oct 2024 09:15:28 -0400 Subject: [PATCH 1/2] fix: Update the upload-preview scripts --- .github/upload-preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/upload-preview.js b/.github/upload-preview.js index b65a6fa..83c6ad4 100644 --- a/.github/upload-preview.js +++ b/.github/upload-preview.js @@ -22,7 +22,7 @@ const publishFn = surge().publish(); } const uploadFolderName = path.basename(uploadFolder); - let uploadURL = `${repo}-${prnum ? `pr-ai-infra-ui-components-${prnum}` : prbranch}`.replace(/[\/|\.]/g, '-'); + let uploadURL = `${repo}-${prnum ? `pr-${prnum}` : prbranch}`.replace(/[\/|\.]/g, '-'); switch(uploadFolderName) { case 'coverage': From 2b1c073ae0bef16f7c90eb22f9dd53df397e8ee8 Mon Sep 17 00:00:00 2001 From: Nicole Thoen Date: Thu, 10 Oct 2024 09:17:14 -0400 Subject: [PATCH 2/2] Update release.yml to add upload-preview --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a237cf..9edc930 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,11 @@ jobs: key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }} - run: yarn install --frozen-lockfile if: steps.yarn-cache.outputs.cache-hit != 'true' + - run: yarn build:docs + name: Build docs + - run: node .github/upload-preview.js packages/module/public + name: Upload docs + if: always() - uses: actions/cache@v4 id: dist name: Cache dist