Skip to content

Commit 778c041

Browse files
authored
updated node engine (#1352)
1 parent 2c7a1dd commit 778c041

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
with:
1818
github_token: ${{ github.token }}
1919
- uses: actions/checkout@v2
20-
- name: Use Node.js 18.x
20+
- name: Use Node.js 20.x
2121
uses: actions/setup-node@v2-beta
2222
with:
23-
node-version: 18.x
23+
node-version: 20.x
2424

2525
- name: Install packages
2626
run: yarn install --frozen-lockfile --network-timeout 300000
@@ -39,5 +39,5 @@ jobs:
3939
AWS_SECRET_ACCESS_KEY: ${{ secrets.COS_SECRET_ACCESS_KEY }}
4040
AWS_REGION: ${{ secrets.COS_REGION }}
4141
AWS_S3_ENDPOINT: https://${{ secrets.COS_ENDPOINT }}
42-
SOURCE_DIR: 'public/design/language'
43-
DEST_DIR: 'design/language'
42+
SOURCE_DIR: "public/design/language"
43+
DEST_DIR: "design/language"

.nvmrc

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

package.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0.1",
66
"main": "src",
77
"engines": {
8-
"node": "18.x"
8+
"node": "20.x"
99
},
1010
"browserslist": [
1111
"last 2 edge version",
@@ -37,25 +37,16 @@
3737
"format": "prettier --write \"**/*.{css,scss,json,html,yaml}\"",
3838
"test:prefix": "gatsby build --prefix-paths && gatsby serve --prefix-paths"
3939
},
40-
"eslintIgnore": [
41-
"public/",
42-
".cache/"
43-
],
40+
"eslintIgnore": ["public/", ".cache/"],
4441
"husky": {
4542
"hooks": {
4643
"pre-commit": "lint-staged"
4744
}
4845
},
4946
"lint-staged": {
50-
"*.js": [
51-
"eslint --fix"
52-
],
53-
"*.{css,scss,json,html,yaml}": [
54-
"prettier --write"
55-
],
56-
"*.{css,scss}": [
57-
"stylelint --fix"
58-
]
47+
"*.js": ["eslint --fix"],
48+
"*.{css,scss,json,html,yaml}": ["prettier --write"],
49+
"*.{css,scss}": ["stylelint --fix"]
5950
},
6051
"dependencies": {
6152
"@carbon/colors": "^10.37.1",

0 commit comments

Comments
 (0)