Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 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
39 changes: 39 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build-docs
on:
release:
types: [created]
push:
branches:
- '**'
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- run: npm ci
- name: Build docs
run: npm run docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build

deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run test:coverage
- run: npm run build
- run: npm run ci
- run: npm publish
if: github.event_name == 'release' && github.event.action == 'created'
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ fesm
umd
bundles
dist
docs/build

## this is generated by `npm pack`
*.tgz
Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ tslint.json
**/prettier.config.js

# build scripts
config/
scripts/

# Test files
Expand All @@ -30,3 +29,5 @@ examples
## this is generated by `npm pack`
*.tgz
package

**/__tests__/**
22 changes: 0 additions & 22 deletions .vscode/launch.json

This file was deleted.

38 changes: 0 additions & 38 deletions config/global.d.ts

This file was deleted.

26 changes: 0 additions & 26 deletions config/jest.config.js

This file was deleted.

102 changes: 0 additions & 102 deletions config/rollup.config.js

This file was deleted.

16 changes: 0 additions & 16 deletions config/tsconfig.json

This file was deleted.

48 changes: 0 additions & 48 deletions config/typedoc.json

This file was deleted.

14 changes: 0 additions & 14 deletions config/types.d.ts

This file was deleted.

42 changes: 0 additions & 42 deletions docs/_config.yml

This file was deleted.

Loading