Skip to content

Commit

Permalink
chore: add typedoc.yml file, genrate docs and publish to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
softvar committed May 27, 2024
1 parent 5f6af73 commit 2ab6d5c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ runner.os }}
Expand All @@ -69,7 +69,7 @@ jobs:
id: slack
uses: wingify/[email protected]
with:
channel-id: 'fs-review-team' # team-testing-serverside
channel-id: 'vwo-fs-fme-sdk-job-status'
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"
color: "${{job.status == 'success' && '#00FF00' || '#FF0000'}}"
env:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install

- name: Build
run: yarn typedoc

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs

0 comments on commit 2ab6d5c

Please sign in to comment.