fix: lint #106
Workflow file for this run
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: 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}} |