Skip to content

Commit

Permalink
reuse previous work for generating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andogq committed Apr 15, 2024
1 parent c02ee66 commit 81d89da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

generate-docs:
needs: release

name: Generate and deploy documentation

environment:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 81d89da

Please sign in to comment.