Skip to content

Add now-mandatory config for rtd and put up a placeholder page redire… #74

Add now-mandatory config for rtd and put up a placeholder page redire…

Add now-mandatory config for rtd and put up a placeholder page redire… #74

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Run linter
run: yarn lint
- name: Run tests
run: yarn test:ci
- name: Create test report
if: ${{ always() }}
uses: tanmen/jest-reporter@v1
with:
github-token: ${{ secrets['GITHUB_TOKEN'] }}
result-file: ./result.json
publish:
if: github.ref == 'refs/heads/master'
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install dependencies
run: yarn
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}