Skip to content

Commit b47f3ed

Browse files
committed
build docs in GH action and relase on version tagging
1 parent 45f8f09 commit b47f3ed

32 files changed

Lines changed: 43 additions & 11939 deletions

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
uses: actions/setup-node@v2
3434
with:
3535
node-version: ${{ matrix.node-version }}
36-
- run: npm ci
36+
- run: npm install
3737
- run: npm test

.github/workflows/docs.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
- run: npm install
15+
- run: npm run docs
16+
- name: Deploy docs
17+
uses: JamesIves/github-pages-deploy-action@4.1.7
18+
with:
19+
branch: gh-pages
20+
folder: docs

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v2
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v2
16+
- run: npm install
17+
- run: npm run build
18+
- run: npm publish --access public
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
dist/
2+
docs/
13
examples/
24
node_modules/
35
package-lock.json

0 commit comments

Comments
 (0)