Skip to content

Commit c03b464

Browse files
author
alfredbrockotter
committed
chore: appended circle ci config
1 parent 1ea6577 commit c03b464

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ jobs:
88
# Checkout repository
99
- checkout
1010

11+
# install node
12+
- run:
13+
name: Install [email protected]
14+
command: |
15+
./load-nvm.sh
16+
nvm install v11.10.1
17+
nvm alias default v11.10.1
18+
19+
# will print node: '11.10.1'
20+
- run: |
21+
./load-nvm.sh
22+
npm version
23+
1124
# Restore cache
1225
- restore_cache:
1326
key: yarn-{{ checksum "yarn.lock" }}

.circleci/load-nvm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# load-nvm.sh
2+
export NVM_DIR="/opt/circleci/.nvm"
3+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

0 commit comments

Comments
 (0)