Skip to content

Commit 868b456

Browse files
committed
feat(pencil): Add publish job in circle ci
1 parent 9cde6f3 commit 868b456

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

.circleci/config.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,42 @@ jobs:
3333

3434
# run tests
3535
- run: yarn test
36+
37+
publish:
38+
docker:
39+
# specify the version you desire here
40+
- image: circleci/node:10.16
41+
42+
working_directory: ~/hypernova-vue
43+
44+
steps:
45+
- checkout
46+
47+
# Download and cache dependencies
48+
- restore_cache:
49+
keys:
50+
- v1-dependencies-{{ checksum "package.json" }}
51+
# fallback to using the latest cache if no exact match is found
52+
- v1-dependencies-
53+
54+
- run: yarn install
55+
56+
- save_cache:
57+
paths:
58+
- node_modules
59+
key: v1-dependencies-{{ checksum "package.json" }}
60+
61+
# run linter
62+
- run: yarn semantic-release -d
3663

3764
workflows:
3865
version: 2
3966
main:
4067
jobs:
41-
- build
68+
- build
69+
- publish:
70+
requires:
71+
- build
72+
filters:
73+
branches:
74+
only: master

0 commit comments

Comments
 (0)