Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #159 from ACloudGuru/fix-publish
Browse files Browse the repository at this point in the history
chore: add codecov configuration
  • Loading branch information
adikari committed Feb 10, 2021
2 parents 1201511 + 6e89bf5 commit 5a543ff
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Examples:

## Todos:

- [ ] Write tests
- [ ] Write documentation
- [ ] Fix linting errors
- [ ] Provide verification config/commands/resources
[] Write tests
[] Write documentation
[] Fix linting errors
[] Provide verification config/commands/resources

15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish

on:
push:
branches:
- master
release:
types: [published]

jobs:
publish:
Expand All @@ -16,14 +15,16 @@ jobs:
- name: Use node 14.x
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
node-version: 14.x
registry-url: https://registry.npmjs.org

- name: Install packages
run: yarn install --frozen-lockfile

- name: Version
run: yarn version --new-version "${GITHUB_REF:11}" --no-git-tag-version --no-commit-hooks

- name: Publish to npm
run: yarn release
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

12 changes: 11 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ coverage:
project:
default:
target: auto
threshold: null
threshold: 90%
base: auto
flags:
- unit
paths:
- "src"
branches:
- master
if_ci_failed: error
informational: false
only_pulls: false

comment:
layout: "reach, diff, flags, files"
Expand Down

0 comments on commit 5a543ff

Please sign in to comment.