From 819a1fdf7d887e06aee21cc203fc323f78f9a22e Mon Sep 17 00:00:00 2001 From: iCrawl Date: Thu, 30 Jun 2022 16:17:52 +0200 Subject: [PATCH] ci: check for main package before moving api-extractor docs --- .github/workflows/documentation.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 8fc279809..d5bc04e97 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -144,7 +144,9 @@ jobs: run: | mkdir -p out/${PACKAGE} mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/${SEMVER}.json - mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${SEMVER}.api.json + if [[ $PACKAGE != "discord.js" ]]; then + mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${SEMVER}.api.json + fi - name: Move docs to correct directory if: ${{ !github.event.inputs.ref && env.BRANCH_OR_TAG == 'branch' }} @@ -153,7 +155,9 @@ jobs: run: | mkdir -p out/${PACKAGE} mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/${BRANCH_NAME}.json - mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${BRANCH_NAME}.api.json + if [[ $PACKAGE != "discord.js" ]]; then + mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${BRANCH_NAME}.api.json + fi - name: Commit and push run: |