Skip to content

Commit ebd8b20

Browse files
Merge pull request #271 from remarkablemark/build/package
build(package): upgrade devDependencies
2 parents 0d679d3 + 2273d06 commit ebd8b20

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
timeout-minutes: 5
88
strategy:
99
matrix:
10-
node-version: [14]
10+
node-version: [16]
1111

1212
steps:
1313
- name: Checkout repository
@@ -20,19 +20,18 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222

23-
- name: Cache node modules
23+
- name: Cache dependencies
2424
uses: actions/cache@v2
25-
env:
26-
cache-name: cache-node-modules
2725
with:
28-
# npm cache files are stored in `~/.npm` on Linux/macOS
29-
path: ~/.npm
30-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
31-
restore-keys: |
32-
${{ runner.os }}-node-
26+
path: |
27+
node_modules
28+
*/*/node_modules
29+
key: ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
30+
id: cache
3331

3432
- name: Install dependencies
35-
run: npm install
33+
if: steps.cache.outputs.cache-hit != 'true'
34+
run: npm install --prefer-offline
3635

3736
- name: Lint commit message
3837
run: npx commitlint --from=HEAD~1

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,34 @@
4343
"style-to-js": "1.1.0"
4444
},
4545
"devDependencies": {
46-
"@commitlint/cli": "^13.1.0",
47-
"@commitlint/config-conventional": "^13.1.0",
48-
"@rollup/plugin-commonjs": "^20.0.0",
49-
"@rollup/plugin-node-resolve": "^13.0.0",
50-
"@size-limit/preset-big-lib": "^4.12.0",
51-
"@types/react": "^17.0.11",
52-
"@typescript-eslint/parser": "^4.26.1",
53-
"benchmark": "^2.1.4",
54-
"dtslint": "^4.1.0",
55-
"eslint": "^7.28.0",
56-
"eslint-plugin-prettier": "^4.0.0",
57-
"husky": "^7.0.0",
58-
"jest": "^27.0.4",
59-
"lint-staged": "^11.0.0",
60-
"pinst": "^2.1.6",
61-
"preact": "^10.5.13",
62-
"prettier": "^2.3.1",
63-
"react": "^17",
64-
"react-dom": "^17",
65-
"rimraf": "^3.0.2",
66-
"rollup": "^2.51.2",
67-
"rollup-plugin-terser": "^7.0.2",
68-
"size-limit": "^4.12.0",
69-
"standard-version": "^9.3.0",
70-
"typescript": "^4.3.2"
46+
"@commitlint/cli": "13.1.0",
47+
"@commitlint/config-conventional": "13.1.0",
48+
"@rollup/plugin-commonjs": "20.0.0",
49+
"@rollup/plugin-node-resolve": "13.0.4",
50+
"@size-limit/preset-big-lib": "5.0.3",
51+
"@types/react": "17.0.20",
52+
"@typescript-eslint/parser": "4.30.0",
53+
"benchmark": "2.1.4",
54+
"dtslint": "4.1.6",
55+
"eslint": "7.32.0",
56+
"eslint-plugin-prettier": "4.0.0",
57+
"husky": "7.0.2",
58+
"jest": "27.1.0",
59+
"lint-staged": "11.1.2",
60+
"pinst": "2.1.6",
61+
"preact": "10.5.14",
62+
"prettier": "2.3.2",
63+
"react": "17.0.2",
64+
"react-dom": "17.0.2",
65+
"rimraf": "3.0.2",
66+
"rollup": "2.56.3",
67+
"rollup-plugin-terser": "7.0.2",
68+
"size-limit": "5.0.3",
69+
"standard-version": "9.3.1",
70+
"typescript": "4.4.2"
7171
},
7272
"peerDependencies": {
73-
"react": "^0.14 || ^15 || ^16 || ^17"
73+
"react": "0.14 || 15 || 16 || 17"
7474
},
7575
"files": [
7676
"/dist",

0 commit comments

Comments
 (0)