Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,41 @@ on:
- master

jobs:
publish-docs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run doc
- name: Deploy to Pages
uses: JamesIves/github-pages-deploy-action@v4
- name: Install and Build Docs
run: |
npm ci
npm run doc
- name: Upload Static Files as Artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
folder: docs
token: ${{ secrets.GH_TOKEN}}
path: docs/

publish-pages:
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4

publish-npm:
needs:
- publish-docs
- publish-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down