Skip to content

Commit 716ed5d

Browse files
committed
ci: use node 10 & 12, split release cmd
1 parent 2652663 commit 716ed5d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.circleci/config.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22

33
jobs:
4-
Node8 tests:
4+
Node10 tests:
55
docker:
6-
- image: circleci/node:8
6+
- image: circleci/node:10
77
steps:
88
- checkout
99
- run: node --version > node_version
@@ -17,9 +17,9 @@ jobs:
1717
- ~/.cache/yarn
1818
- run: yarn test
1919

20-
Node10 tests:
20+
Node12 tests:
2121
docker:
22-
- image: circleci/node:10
22+
- image: circleci/node:12
2323
steps:
2424
- checkout
2525
- run: node --version > node_version
@@ -36,7 +36,7 @@ jobs:
3636

3737
Release:
3838
docker:
39-
- image: circleci/node:10
39+
- image: circleci/node:12
4040
steps:
4141
- checkout
4242
- run: node --version > node_version
@@ -54,18 +54,19 @@ jobs:
5454
git remote set-url origin "https://${GH_TOKEN}@github.com/nodkz/mongodb-memory-server.git" > /dev/null 2>&1
5555
git checkout master
5656
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ${HOME}/.npmrc 2> /dev/null
57+
- run: yarn build
5758
- run: yarn release --yes
5859

5960
workflows:
6061
version: 2
6162
build:
6263
jobs:
63-
- Node8 tests
6464
- Node10 tests
65+
- Node12 tests
6566
- Release:
6667
requires:
67-
- Node8 tests
6868
- Node10 tests
69+
- Node12 tests
6970
filters:
7071
branches:
7172
only: master

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"watch": "jest --env node --watch",
3535
"jest": "jest --env node",
3636
"build": "tsc --build tsconfig.build.json",
37-
"release": "yarn build && lerna publish",
37+
"release": "lerna publish",
3838
"postinstall": "yarn build"
3939
}
4040
}

0 commit comments

Comments
 (0)