Skip to content

Commit 468f23f

Browse files
committed
fixed package files
1 parent 6520f3f commit 468f23f

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/node.js.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ main ]
8+
branches: [main]
99
pull_request:
10-
branches: [ main ]
10+
branches: [main]
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
strategy:
1817
matrix:
1918
node-version: [12.x, 14.x]
2019

2120
steps:
22-
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: yarn install
28-
- run: yarn build
29-
- run: yarn test
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: yarn install
27+
- run: yarn build
28+
- run: yarn test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"security": "npm audit",
2121
"lint:prettier": "prettier --list-different .",
2222
"lint:js": "eslint --cache .",
23-
"lint": "npm-run-all -l -p \"lint:**\"",
23+
"lint": "yarn lint:js && yarn lint:prettier",
2424
"test:only": "cross-env NODE_ENV=test jest",
2525
"test:watch": "yarn test:only -- --watch",
2626
"test:coverage": "yarn test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",

0 commit comments

Comments
 (0)