forked from request/request
-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.yml
46 lines (43 loc) · 989 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: 2
jobs:
test:
docker:
- image: cimg/node:18.20.4
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-npm-{{ checksum "package.json" }}
- v1-dependencies-npm
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-npm-{{ checksum "package.json" }}
- run: npm test
release:
docker:
- image: cimg/node:22.7.0
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-npm-{{ checksum "package.json" }}
- v1-dependencies-npm
- run: npm install
- run: npx semantic-release
workflows:
version: 2
test_and_release:
jobs:
- test
- release:
context:
- test-runner:npm-release
requires:
- test
filters:
branches:
only:
- master