Skip to content

Commit c091813

Browse files
committed
feat: introduce semantic release
1 parent 9318f7a commit c091813

File tree

4 files changed

+827
-305
lines changed

4 files changed

+827
-305
lines changed

.circleci/config.yml

+73-30
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,74 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
snyk: snyk/[email protected]
24
jobs:
3-
build:
4-
docker:
5-
- image: circleci/node:10.16.3
6-
steps:
7-
- run:
8-
name: "Setup Snyk"
9-
command: |
10-
sudo npm install -g snyk
11-
- checkout
12-
- run:
13-
name: "Install deps"
14-
command: |
15-
npm install
16-
- run:
17-
name: "Run Lint"
18-
command: |
19-
npm run lint
20-
- run:
21-
name: "Run Tests"
22-
command: |
23-
npm test
24-
- run:
25-
name: "Snyk Test"
26-
command: |
27-
snyk test --org=customer-facing-tools
28-
- run:
29-
name: "Monitor"
30-
command: |
31-
snyk monitor --org=customer-facing-tools
5+
build-test-publish:
6+
docker:
7+
- image: circleci/node:latest
8+
steps:
9+
- checkout
10+
- run: npm install semantic-release @semantic-release/exec pkg --save-dev
11+
- run: npm install
12+
- run: npm test
13+
- snyk/scan:
14+
fail-on-issues: true
15+
monitor-on-build: false
16+
token-variable: SNYK_TOKEN
17+
- run: npx semantic-release
18+
build-test:
19+
docker:
20+
- image: circleci/node:latest
21+
steps:
22+
- checkout
23+
- run: npm install
24+
- run: npm test
25+
- snyk/scan:
26+
fail-on-issues: true
27+
monitor-on-build: false
28+
token-variable: SNYK_TOKEN
29+
- run: npx tsc
30+
build-test-from-fork:
31+
docker:
32+
- image: circleci/node:latest
33+
steps:
34+
- checkout
35+
- run: npm install
36+
- run: npm test
37+
- run: npx tsc
38+
39+
workflows:
40+
version: 2.1
41+
nightly:
42+
triggers:
43+
- schedule:
44+
cron: "0 0 * * *"
45+
filters:
46+
branches:
47+
only:
48+
- master
49+
jobs:
50+
- build-test-publish:
51+
context: SNYK
52+
53+
build-test-publish:
54+
jobs:
55+
- build-test-publish:
56+
context: SNYK
57+
filters:
58+
branches:
59+
only:
60+
- master
61+
build-test:
62+
jobs:
63+
- build-test:
64+
context: SNYK
65+
filters:
66+
branches:
67+
ignore:
68+
- master
69+
- /pull\/[0-9]+/
70+
- build-test-from-fork:
71+
filters:
72+
branches:
73+
only:
74+
- /pull\/[0-9]+/

.snyk

+5-28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2-
version: v1.14.1
2+
version: v1.19.0
33
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
44
ignore:
55
'npm:braces:20180219':
@@ -30,33 +30,10 @@ ignore:
3030
reason: no fix avail yet
3131
expires: '2020-04-11T08:48:22.379Z'
3232
SNYK-JS-DECOMPRESSTAR-559095:
33-
- node-jq:
34-
reason: no fix avail yet
35-
expires: '2020-12-26T04:18:20.858Z'
36-
- node-jq > download > decompress > decompress-tar:
37-
reason: no fix avail yet
38-
expires: '2020-12-26T04:18:20.858Z'
39-
- node-jq > bin-build > decompress > decompress-tarbz2 > decompress-tar:
40-
reason: no fix avail yet
41-
expires: '2020-12-26T04:18:20.858Z'
42-
- node-jq > download > decompress > decompress-tarbz2 > decompress-tar:
43-
reason: no fix avail yet
44-
expires: '2020-12-26T04:18:20.858Z'
45-
- node-jq > bin-build > decompress > decompress-targz > decompress-tar:
46-
reason: no fix avail yet
47-
expires: '2020-12-26T04:18:20.858Z'
48-
- node-jq > download > decompress > decompress-targz > decompress-tar:
49-
reason: no fix avail yet
50-
expires: '2020-12-26T04:18:20.858Z'
51-
- node-jq > bin-build > download > decompress > decompress-tar:
52-
reason: no fix avail yet
53-
expires: '2020-08-26T18:40:13.635Z'
54-
- node-jq > bin-build > download > decompress > decompress-tarbz2 > decompress-tar:
55-
reason: no fix avail yet
56-
expires: '2020-08-26T18:40:13.635Z'
57-
- node-jq > bin-build > download > decompress > decompress-targz > decompress-tar:
58-
reason: no fix available
59-
expires: '2020-08-26T18:40:13.635Z'
33+
- '*':
34+
reason: None Given
35+
expires: 2021-05-01T00:00:00.000Z
36+
created: 2021-03-16T04:06:57.018Z
6037
SNYK-JS-MINIMIST-559764:
6138
- snyk > @snyk/update-notifier > latest-version > package-json > registry-auth-token > rc > minimist:
6239
reason: no fix avail yet

0 commit comments

Comments
 (0)