Skip to content

Commit cbd1cee

Browse files
committed
upgrade [email protected], workflows
1 parent feea56b commit cbd1cee

File tree

5 files changed

+58
-11
lines changed

5 files changed

+58
-11
lines changed

Diff for: .github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [10.x, 12.x, 14.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm install
24+
- run: npm test
25+
- name: Coveralls
26+
uses: coverallsapp/github-action@master
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/publish.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 }}
23+
- name: Publish to npm
24+
if: "!github.event.release.prerelease"
25+
run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Diff for: .travis.yml

-9
This file was deleted.

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
},
3737
"homepage": "https://github.com/epoberezkin/ajv-errors#readme",
3838
"peerDependencies": {
39-
"ajv": "^7.0.0-beta.7"
39+
"ajv": "^7.0.0"
4040
},
4141
"devDependencies": {
4242
"@ajv-validator/config": "^0.3.0",
4343
"@types/jest": "^26.0.15",
4444
"@types/node": "^14.14.7",
4545
"@typescript-eslint/eslint-plugin": "^4.7.0",
4646
"@typescript-eslint/parser": "^4.7.0",
47-
"ajv": "^7.0.0-beta.7",
47+
"ajv": "^7.0.0",
4848
"eslint": "^7.2.0",
4949
"eslint-config-prettier": "^6.15.0",
5050
"husky": "^4.3.0",

Diff for: src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const used: Name = new Name("emUsed")
3030
const KEYWORD_PROPERTY_PARAMS = {
3131
required: "missingProperty",
3232
dependencies: "property",
33+
dependentRequired: "property",
3334
}
3435

3536
export interface ErrorMessageOptions {

0 commit comments

Comments
 (0)