Skip to content

Commit 26a1ded

Browse files
committed
feat: node 16
1 parent bffc619 commit 26a1ded

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.circleci/config.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1+
orbs:
2+
node: circleci/node@5.0.2
3+
14
version: 2.1
25

3-
orbs:
4-
node: circleci/node@1.1.6
6+
parameters:
7+
node_version:
8+
type: string
9+
default: '16.15.1'
510

611
commands:
712
install_deps:
813
steps:
9-
- node/with-cache:
14+
- node/install-packages:
15+
pkg-manager: yarn
1016
cache-version: v1-all
11-
cache-key: package.json
12-
dir: ~/repo/node_modules
13-
use-strict-cache: true
14-
steps:
15-
- run: yarn install --pure-lockfile --no-progress
17+
cache-only-lockfile: true
18+
app-dir: ~/repo
19+
override-ci-command: yarn install --pure-lockfile --no-progress
1620

1721
jobs:
1822
build:
1923
executor:
2024
name: node/default
21-
tag: '12'
25+
tag: << pipeline.parameters.node_version >>
2226
working_directory: ~/repo
2327
steps:
2428
- checkout

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@babel/preset-typescript": "7.17.12",
4141
"@shelf/eslint-config": "2.18.0",
4242
"@shelf/prettier-config": "1.0.0",
43-
"@types/node": "12",
43+
"@types/node": "16",
4444
"eslint": "8.18.0",
4545
"husky": "8.0.1",
4646
"lint-staged": "13.0.2",
@@ -50,7 +50,7 @@
5050
"webpack-cli": "4.10.0"
5151
},
5252
"engines": {
53-
"node": ">=12"
53+
"node": ">=16"
5454
},
5555
"publishConfig": {
5656
"access": "public"

0 commit comments

Comments
 (0)