Skip to content

Commit 684bb14

Browse files
committed
Update CI and package scripts to use Yarn
1 parent 3cc3f91 commit 684bb14

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ jobs:
2323
- name: Cache dependencies
2424
uses: actions/cache@v2
2525
with:
26-
path: ~/.npm
27-
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
28-
restore-keys: |
29-
${{ runner.OS }}-npm-
30-
${{ runner.OS }}-
26+
path: .yarn/cache
27+
key: yarn-${{ hashFiles('yarn.lock') }}
28+
restore-keys: yarn-
3129

3230
- name: Install dependencies
3331
run: yarn install

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"build:es": "babel src --out-dir es",
2727
"build:umd": "cross-env NODE_ENV=development rollup -c -o dist/react-redux.js",
2828
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/react-redux.min.js",
29-
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
29+
"build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:umd:min",
3030
"clean": "rimraf lib dist es coverage",
31-
"format": "prettier --write \"{src,test}/**/*.{js,ts}\" index.d.ts \"docs/**/*.md\"",
31+
"format": "prettier --write \"{src,test}/**/*.{js,ts}\" \"docs/**/*.md\"",
3232
"lint": "eslint src test/utils test/components test/hooks",
33-
"prepare": "npm run clean && npm run build",
34-
"pretest": "npm run lint",
33+
"prepare": "yarn clean && yarn build",
34+
"pretest": "yarn lint",
3535
"test": "jest",
3636
"coverage": "codecov"
3737
},

0 commit comments

Comments
 (0)