Skip to content

Commit 2ab6d5c

Browse files
committed
chore: add typedoc.yml file, genrate docs and publish to github pages
1 parent 5f6af73 commit 2ab6d5c

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

Diff for: .github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
yarn test:coverage
6060
6161
- name: Upload coverage to Codecov
62-
uses: codecov/codecov-action@v3
62+
uses: codecov/codecov-action@v4.0.1
6363
with:
6464
token: ${{ secrets.CODECOV_TOKEN }}
6565
flags: ${{ runner.os }}
@@ -69,7 +69,7 @@ jobs:
6969
id: slack
7070
uses: wingify/[email protected]
7171
with:
72-
channel-id: 'fs-review-team' # team-testing-serverside
72+
channel-id: 'vwo-fs-fme-sdk-job-status'
7373
slack-message: "<!here> Node.js FME SDK Test on *Node-${{ matrix.node_version }}* and *${{ matrix.os }}* got *${{job.status}}* ${{job.status == 'success' && ':heavy_check_mark:' || ':x:'}} \nCommit: `${{github.event.head_commit.message}}`. \nCheck the latest build: https://github.com/wingify/vwo-node-sdk/actions"
7474
color: "${{job.status == 'success' && '#00FF00' || '#FF0000'}}"
7575
env:

Diff for: .github/workflows/typedoc.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '18'
20+
21+
- name: Install dependencies
22+
run: yarn install
23+
24+
- name: Build
25+
run: yarn typedoc
26+
27+
- name: Deploy 🚀
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
folder: docs

0 commit comments

Comments
 (0)