Skip to content

Commit

Permalink
chore: force node 10.12
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Apr 2, 2020
1 parent 1e4599b commit b244950
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
install-test-linux:
docker:
# specify the version you desire here
- image: circleci/node:9-browsers
- image: circleci/node:10

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down Expand Up @@ -43,14 +43,26 @@ jobs:
xcode: "9.0"
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-mac-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-mac-dependencies-

# Lock into Node.js version
- run:
name: Install Node.js
command: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install v10.19.0
nvm alias default v10.19.0
echo 'export NVM_DIR=${HOME}/.nvm' >> $BASH_ENV
echo "[ -s '${NVM_DIR}/nvm.sh' ] && . '${NVM_DIR}/nvm.sh'" >> $BASH_ENV
- run: node --version
- run: npm --version
- run: npm install

- save_cache:
Expand All @@ -59,8 +71,6 @@ jobs:
key: v1-mac-dependencies-{{ checksum "package.json" }}

# run tests!
- run: node --version
- run: npm --version
- run: npm test

workflows:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ branches:
- master

environment:
nodejs_version: "6"
nodejs_version: "10"

cache:
- node_modules -> package.json
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"lint": "standard --fix",
"test": "standard && mocha"
},
"engines" : {
"node" : ">=10.12.0"
},
"author": "Kevin Sawicki",
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit b244950

Please sign in to comment.