Skip to content

Commit 624f87b

Browse files
committed
chore: publish from CI
Publish artifacts from this repository using semantic-release.
1 parent b5dae10 commit 624f87b

File tree

3 files changed

+5001
-265
lines changed

3 files changed

+5001
-265
lines changed

.circleci/config.yml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,59 @@ version: 2.1
33
orbs:
44
codecov: codecov/codecov@1.0.4
55

6-
jobs:
7-
build:
6+
references:
7+
attach_workspace: &attach_workspace
8+
attach_workspace:
9+
at: ~/repo
10+
persist_to_workspace: &persist_to_workspace
11+
persist_to_workspace:
12+
root: ~/repo
13+
paths: .
14+
15+
executors:
16+
daneel:
817
docker:
918
- image: circleci/node:10.15.1
10-
1119
working_directory: ~/repo
1220

21+
jobs:
22+
build:
23+
executor: daneel
1324
steps:
25+
- *attach_workspace
1426
- checkout
15-
1627
# Download and cache dependencies
1728
- restore_cache:
1829
keys:
1930
- v1-dependencies-{{ checksum "package.json" }}
2031
# fallback to using the latest cache if no exact match is found
2132
- v1-dependencies-
22-
2333
- run: npm install
24-
2534
- save_cache:
2635
paths:
2736
- node_modules
2837
key: v1-dependencies-{{ checksum "package.json" }}
29-
3038
- run: npm test
31-
3239
- codecov/upload:
3340
file: .nyc_output/*.json
41+
- *persist_to_workspace
42+
publish:
43+
executor: daneel
44+
steps:
45+
- *attach_workspace
46+
- run: npx semantic-release
47+
48+
workflows:
49+
build:
50+
jobs:
51+
- build:
52+
filters:
53+
branches:
54+
only: /.*/
55+
- publish:
56+
context: pi
57+
requires:
58+
- build
59+
filters:
60+
branches:
61+
only: master

0 commit comments

Comments
 (0)