Skip to content

Commit 61d7fd8

Browse files
build(github-actions): report coverage using a comm action
1 parent 1047a53 commit 61d7fd8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,25 @@ jobs:
2727
npm run docs:build
2828
env:
2929
CI: true
30+
- name: Coveralls
31+
uses: coverallsapp/github-action@master
32+
with:
33+
github-token: ${{ secrets.GITHUB_TOKEN }}
34+
3035
# publish to latest if on master branch
3136
- name: release master
3237
if: ${{ github.ref == 'master' }}
3338
run:
34-
echo "release because we are on master branch"
35-
npm run report-coverage
36-
npm run docs:deploy
3739
npx semantic-release
40+
npm run docs:deploy
3841
env:
3942
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4043
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4144

4245
# publish pre-release if on PR branch
4346
- name: release PR version
4447
if: ${{ startsWith(github.ref, 'refs/pull/') }}
45-
run: |
46-
echo "pre-release because we are on a pull request"
47-
npx semantic-release -- --dry-run --debug
48+
run: npx semantic-release -- --dry-run --debug
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5051
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)