Skip to content

Commit 1e73734

Browse files
committed
ci: send coverage, publish workflow
1 parent 0eecb46 commit 1e73734

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
node-version: ${{ matrix.node-version }}
2323
- run: npm install
2424
- run: npm test
25-
# - name: Coveralls
26-
# uses: coverallsapp/github-action@master
27-
# with:
28-
# github-token: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Coveralls
26+
uses: coverallsapp/github-action@master
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 14
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm install
17+
- run: npm test
18+
- name: Publish beta version to npm
19+
if: "github.event.release.prerelease"
20+
run: npm publish --tag beta
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ajv-cli",
33
"version": "3.3.0",
4-
"description": "A command line interface for epoberezkin/ajv JSON schema validator",
4+
"description": "Command line interface for Ajv JSON schema validator",
55
"scripts": {
66
"build": "rm -rf dist && tsc",
77
"prepublish": "npm run build",

0 commit comments

Comments
 (0)