Skip to content

Commit abb7a9f

Browse files
Remove mostly duplicate :ci npm scripts
1 parent d667f07 commit abb7a9f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
- name: Yarn Install
2323
run: yarn
2424
- name: Lint
25-
run: yarn lint:ci
25+
run: yarn lint
2626
- name: Jest Tests
27-
run: yarn test:ci
27+
run: yarn test --coverage
2828
- name: Typescript build
2929
run: yarn build
3030
- name: Storybook build

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
run: yarn
2929

3030
- name: Lint
31-
run: yarn lint:ci
31+
run: yarn lint
3232

3333
- name: Jest Tests
34-
run: yarn test:ci
34+
run: yarn test --coverage
3535

3636
- name: Typescript build
3737
run: yarn build

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@
5454
"build": "yarn cleanup && rollup -c",
5555
"test": "jest",
5656
"test:watch": "jest --watch",
57-
"test:ci": "jest --coverage",
5857
"lint": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'",
59-
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}' --fix",
60-
"lint:ci": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'",
58+
"lint:fix": "yarn lint --fix",
6159
"build-storybook": "storybook build",
62-
"prepublishOnly": "yarn lint:ci && yarn test:ci && yarn storybook --smoke-test"
60+
"prepublishOnly": "yarn lint && yarn test && yarn storybook --smoke-test"
6361
},
6462
"license": "MIT",
6563
"devDependencies": {

0 commit comments

Comments
 (0)