Pavel Sukhodolski 867f0e1487 remove travis pipelines
remove jsdocs directory and use doc generation from config and package
parallelize build pipeline and make it faster
remove .vscode
update dependencies
fix vulnerability
remove fonts dependencies nad make it from npx
fix vulnerability in code
2022-09-02 17:52:46 +03:00

50 lines
1.0 KiB
YAML

name: Triggers the workflow on push or pull request events
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/main
- run: npm test
- run: npm run build
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/main
- run: npm run api
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./api
generate_types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/main
- run: npm run generate_types
zip-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/main
- run: npm run build
- uses: papeloto/action-zip@v1
with:
files: dist
dest: .zip