Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 4e710d5

Browse files
authored
Merge pull request #50 from apiaryio/honzajavorek/semrel
Add Semantic Release
2 parents 44932b5 + a8988e3 commit 4e710d5

File tree

3 files changed

+6907
-114
lines changed

3 files changed

+6907
-114
lines changed

.circleci/config.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
jobs:
3-
lint-features:
3+
lint:
44
docker:
55
- image: circleci/node:10
66
working_directory: ~/repo
@@ -25,9 +25,24 @@ jobs:
2525
name: Test
2626
command: npm test
2727

28+
release:
29+
# needs NPM_TOKEN and GH_TOKEN environment variables set
30+
# in https://circleci.com/gh/apiaryio/dredd-hooks-template/edit#env-vars
31+
docker:
32+
- image: circleci/node:10
33+
working_directory: ~/repo
34+
steps:
35+
- checkout
36+
- run: npm install
37+
- run: npm run release
38+
2839
workflows:
2940
version: 2
3041
build:
3142
jobs:
32-
- lint-features
43+
- lint
3344
- test-with-python-hooks
45+
- release:
46+
requires:
47+
- lint
48+
- test-with-python-hooks

0 commit comments

Comments
 (0)