1 | version: 2
|
2 | jobs:
|
3 | test:
|
4 | docker:
|
5 |
|
6 | - image: circleci/node:lts
|
7 | environment:
|
8 | TZ: "Europe/London"
|
9 | working_directory: ~/repo
|
10 | steps:
|
11 | - checkout
|
12 | - run:
|
13 | name: install
|
14 | command: npm install
|
15 | - run:
|
16 | name: test
|
17 | command: npm test
|
18 | - run:
|
19 | name: codecov
|
20 | command: npm run coverage
|
21 | release:
|
22 | docker:
|
23 |
|
24 | - image: circleci/node:lts
|
25 | environment:
|
26 | TZ: "Europe/London"
|
27 | working_directory: ~/repo
|
28 | steps:
|
29 | - checkout
|
30 | - run:
|
31 | name: install
|
32 | command: npm install
|
33 | - run:
|
34 | name: release
|
35 | command: npx semantic-release
|
36 | workflows:
|
37 | version: 2
|
38 | test_and_release:
|
39 | jobs:
|
40 | - test:
|
41 | context: tymly_global
|
42 | - release:
|
43 | context: tymly_global
|
44 | requires:
|
45 | - test
|
46 | filters:
|
47 | branches:
|
48 | only: master |
\ | No newline at end of file |