|
| 1 | +# version: 2.1 |
| 2 | +# orbs: |
| 3 | +# commitlint: conventional-changelog/[email protected] |
| 4 | +# node: circleci/[email protected] |
1 | 5 |
|
2 |
| -version: 2.1 |
3 |
| -orbs: |
4 |
| - commitlint: conventional-changelog/[email protected] |
5 |
| - |
| 6 | +# jobs: |
| 7 | +# build-and-test: |
| 8 | +# executor: |
| 9 | +# name: node/default |
| 10 | +# resource_class: medium |
| 11 | +# tag: '16.19' |
| 12 | +# steps: |
| 13 | +# - checkout |
| 14 | +# - node/install-packages |
| 15 | +# - run: npm run build |
| 16 | +# - run: npm run test |
| 17 | +# - persist_to_workspace: |
| 18 | +# root: ~/project |
| 19 | +# paths: |
| 20 | +# - . |
| 21 | +# deploy: |
| 22 | +# executor: |
| 23 | +# name: node/default |
| 24 | +# resource_class: medium |
| 25 | +# tag: '16.19' |
| 26 | +# steps: |
| 27 | +# - attach_workspace: |
| 28 | +# at: ~/project |
| 29 | +# - run: npm run semantic-release |
6 | 30 |
|
7 |
| -jobs: |
8 |
| - build-and-test: |
9 |
| - executor: |
10 |
| - name: node/default |
11 |
| - resource_class: medium |
12 |
| - tag: '16.19' |
13 |
| - steps: |
14 |
| - - checkout |
15 |
| - - node/install-packages |
16 |
| - - run: npm run build |
17 |
| - - run: npm run test |
18 |
| - - persist_to_workspace: |
19 |
| - root: ~/project |
20 |
| - paths: |
21 |
| - - . |
22 |
| - deploy: |
23 |
| - executor: |
24 |
| - name: node/default |
25 |
| - resource_class: medium |
26 |
| - tag: '16.19' |
27 |
| - steps: |
28 |
| - - attach_workspace: |
29 |
| - at: ~/project |
30 |
| - - run: npm run semantic-release |
| 31 | +# workflows: |
| 32 | +# commitlint: |
| 33 | +# when: |
| 34 | +# not: |
| 35 | +# or: |
| 36 | +# - equal: [ master, <<pipeline.git.branch>> ] |
| 37 | +# - equal: [ develop, <<pipeline.git.branch>> ] |
| 38 | +# - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> } |
| 39 | +# - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> } |
| 40 | +# jobs: |
| 41 | +# - commitlint/lint: |
| 42 | +# target-branch: develop |
31 | 43 |
|
32 |
| -workflows: |
33 |
| - commitlint: |
34 |
| - when: |
35 |
| - not: |
36 |
| - or: |
37 |
| - - equal: [ master, <<pipeline.git.branch>> ] |
38 |
| - - equal: [ develop, <<pipeline.git.branch>> ] |
39 |
| - - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> } |
40 |
| - - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> } |
41 |
| - jobs: |
42 |
| - - commitlint/lint: |
43 |
| - target-branch: develop |
| 44 | +# build-and-test-workflow: |
| 45 | +# when: |
| 46 | +# not: |
| 47 | +# or: |
| 48 | +# - equal: [ master, <<pipeline.git.branch>> ] |
| 49 | +# - equal: [ develop, <<pipeline.git.branch>> ] |
| 50 | +# - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> } |
| 51 | +# - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> } |
| 52 | +# jobs: |
| 53 | +# - build-and-test |
44 | 54 |
|
45 |
| - build-and-test-workflow: |
46 |
| - when: |
47 |
| - not: |
48 |
| - or: |
49 |
| - - equal: [ master, <<pipeline.git.branch>> ] |
50 |
| - - equal: [ develop, <<pipeline.git.branch>> ] |
51 |
| - - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> } |
52 |
| - - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> } |
53 |
| - jobs: |
54 |
| - - build-and-test |
| 55 | +# deploy-workflow: |
| 56 | +# when: |
| 57 | +# or: |
| 58 | +# - equal: [ master, <<pipeline.git.branch>> ] |
| 59 | +# - equal: [ develop, <<pipeline.git.branch>> ] |
| 60 | +# - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> } |
| 61 | +# - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> } |
55 | 62 |
|
56 |
| - deploy-workflow: |
57 |
| - when: |
58 |
| - or: |
59 |
| - - equal: [ master, <<pipeline.git.branch>> ] |
60 |
| - - equal: [ develop, <<pipeline.git.branch>> ] |
61 |
| - - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> } |
62 |
| - - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> } |
63 |
| - |
64 |
| - jobs: |
65 |
| - - build-and-test |
66 |
| - - deploy: |
67 |
| - context: |
68 |
| - - scratch-npm-creds |
69 |
| - requires: |
70 |
| - - build-and-test |
| 63 | +# jobs: |
| 64 | +# - build-and-test |
| 65 | +# - deploy: |
| 66 | +# context: |
| 67 | +# - scratch-npm-creds |
| 68 | +# requires: |
| 69 | +# - build-and-test |
0 commit comments