Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gera2ld committed Jan 2, 2024
1 parent b563f2a commit 964ca41
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: doc

on:
workflow_dispatch:
push:
branches:
- main
paths:
- package.json
- index.d.ts
- README.md

jobs:
build:
Expand All @@ -17,21 +22,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '20'
- uses: marceloprado/has-changed-path@v1
id: changed-d-ts
with:
paths: package.json index.d.ts
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Build docs
if: steps.changed-d-ts.outputs.changed == 'true'
run: |
pnpm i
pnpm build:docs
pnpm build:docs --json docs/types.json
- name: Deploy to GitHub Pages
if: steps.changed-d-ts.outputs.changed == 'true'
uses: JamesIves/[email protected]
with:
branch: gh-pages
Expand Down

0 comments on commit 964ca41

Please sign in to comment.