Skip to content

Commit

Permalink
update cd action
Browse files Browse the repository at this point in the history
  • Loading branch information
isolomak committed Apr 4, 2020
1 parent 01a8885 commit 97cc2a9
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,25 @@ jobs:
- run: npm ci
- run: npm test

publish-npm:
publish-coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm i
- run: npm test

- name: coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

publish-npm:
needs: [build, publish-coverage]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -30,7 +46,7 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
needs: [build, publish-coverage]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 97cc2a9

Please sign in to comment.