UNPKG

987 BYAMLView Raw
1version: 2
2jobs:
3 test:
4 docker:
5 # use node:lts
6 - image: cimg/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 # use node:lts
24 - image: cimg/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: |
36 chmod +x version_plugin
37 npx semantic-release
38workflows:
39 version: 2
40 test_and_release:
41 jobs:
42 - test:
43 context: tymly_global
44 - release:
45 context: tymly_global
46 requires:
47 - test
48 filters:
49 branches:
50 only: master