Skip to content

Commit a75134c

Browse files
Remove mostly duplicate :ci npm scripts
1 parent 02c4bd2 commit a75134c

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
@@ -55,12 +55,10 @@
5555
"build": "yarn cleanup && rollup -c",
5656
"test": "jest",
5757
"test:watch": "jest --watch",
58-
"test:ci": "jest --coverage",
5958
"lint": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'",
60-
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}' --fix",
61-
"lint:ci": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'",
59+
"lint:fix": "yarn lint --fix",
6260
"build-storybook": "storybook build",
63-
"prepublishOnly": "yarn lint:ci && yarn test:ci && yarn storybook --smoke-test"
61+
"prepublishOnly": "yarn lint && yarn test && yarn storybook --smoke-test"
6462
},
6563
"license": "MIT",
6664
"devDependencies": {

0 commit comments

Comments
 (0)