Skip to content

fix: lint

fix: lint #106

Workflow file for this run

name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v2
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- name: Set branch name
run: echo >>$GITHUB_ENV BRANCH_NAME=${GITHUB_REF#refs/heads/}
- name: Output branch name
run: echo ${BRANCH_NAME}
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test
- name: Generate coverage
run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
- name: Publish And Notify
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
DING_WEBHOOK: ${{secrets.DING_WEBHOOK}}