Skip to content

Commit 9238b04

Browse files
authored
Upgrade Node for security (reactiflux#273)
* Upgrade Node for security * Upgrade old actions * Restore cache in CI * Revert `workflow_dispatch` I forgot `workflow_dispatch` doesn't do anything until the workflow is merged, so I'll use this commit to trigger it instead.
1 parent 0a87b12 commit 9238b04

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ jobs:
88

99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
12+
- name: Setup node
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version-file: .nvmrc
16+
cache: yarn
17+
- name: Restore cache
18+
uses: actions/cache@v3
19+
with:
20+
path: .next/cache
21+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
22+
restore-keys: |
23+
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
1224
- name: Install
1325
run: yarn
1426
- name: Test

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v20

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"dependencies": {
24-
"@types/node": "16.11.10",
24+
"@types/node": "20.6.0",
2525
"@types/react": "17.0.37",
2626
"@types/styled-components": "^5.1.15",
2727
"@vcarl/remark-headings": "^0.0.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,10 @@
397397
resolved "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz"
398398
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
399399

400-
"@types/node@16.11.10":
401-
version "16.11.10"
402-
resolved "https://registry.npmjs.org/@types/node/-/node-16.11.10.tgz"
403-
integrity sha512-3aRnHa1KlOEEhJ6+CvyHKK5vE9BcLGjtUpwvqYLRvYNQKMfabu3BwfJaA/SLW8dxe28LsNDjtHwePTuzn3gmOA==
400+
"@types/node@20.6.0":
401+
version "20.6.0"
402+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.6.0.tgz#9d7daa855d33d4efec8aea88cd66db1c2f0ebe16"
403+
integrity sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg==
404404

405405
"@types/parse-json@^4.0.0":
406406
version "4.0.0"

0 commit comments

Comments
 (0)