From 81d89da61dbeb3ffe1bf41292cbd0edd195ca5ea Mon Sep 17 00:00:00 2001 From: Tom Anderson Date: Mon, 15 Apr 2024 14:42:57 +1000 Subject: [PATCH] reuse previous work for generating docs --- .github/workflows/release.yml | 16 ++-------------- package.json | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10111b5..0a45bed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,8 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} generate-docs: + needs: release + name: Generate and deploy documentation environment: @@ -48,20 +50,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - - name: Setup Node.js 20.x - uses: actions/setup-node@v4 - with: - node-version: 20.x - - - name: Install Dependencies - run: npm ci - - - name: Build docs - run: npm run doc - - name: Setup pages uses: actions/configure-pages@v4 diff --git a/package.json b/package.json index 76c1317..bdb903c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "tsup ./src/index.ts --format esm,cjs --dts", "doc": "typedoc ./src", "test": "vitest", - "ci:release": "npm run build && changeset publish" + "ci:release": "npm run build && npm run doc && changeset publish" }, "keywords": [], "files": [