Skip to content

Commit 76ba8c7

Browse files
committed
fix(ci): updated github actions commands
1 parent 14c679d commit 76ba8c7

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Install Lerna
14-
run: npm install -g [email protected]
1513
- name: Install packages
16-
run: lerna exec -- npm install
14+
run: npm install
1715
- name: Run lint
18-
run: lerna exec -- npm run lint
16+
run: npm run lint
1917
- name: Run tests
20-
run: lerna exec -- npm run test
18+
run: npm run test
2119
- name: Report Coverage
2220
if: ${{ github.event_name == 'pull_request' }}
2321
uses: romeovs/[email protected]

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
"types": "lib/",
77
"scripts": {
88
"commit": "commit",
9-
"prepare": "npm run build",
10-
"prepublishOnly": "npm test && npm run lint",
11-
"preversion": "npm run lint",
12-
"version": "npm run format && git add -A src",
9+
"test": "lerna exec -- jest --coverage --detectOpenHandles",
10+
"build": "lerna exec -- tsc",
11+
"lint": "lerna exec -- eslint \"./{src,tests}/**/*.ts\"",
12+
"format": "lerna exec -- eslint --fix \"./{src,tests}/**/*.ts\"",
13+
"prepare": "lerna exec -- npm run build",
14+
"prepublishOnly": "lerna exec -- npm test && lerna exec -- npm run lint",
15+
"preversion": "lerna exec -- npm run lint",
16+
"version": "lerna exec -- npm run format && git add -A src",
1317
"postversion": "git push && git push --tags"
1418
},
1519
"repository": {

0 commit comments

Comments
 (0)