Merge branch 'main' into release #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Package | |
on: | |
push: | |
branches: [release] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Select Node Version | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Deps | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test | |
- name: Generate Coverage | |
run: yarn cc | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Release Package | |
run: yarn build-package | |
- name: Publish To NPM | |
run: yarn publish package | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Install Doc Dependencies | |
run: cd docs-site && yarn install | |
- name: Generate Documentation | |
run: rm -rf ./docs && yarn docs | |
- name: Deploy Documentation | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: ./docs | |
cname: iso-fns.org |