Skip to content

Commit 3f21d61

Browse files
author
jasonwalsh
committed
ci: add release job
1 parent d40ec70 commit 3f21d61

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@ jobs:
88
- go/mod-download
99
- go/save-cache
1010
- go/test
11+
release:
12+
docker:
13+
- image: circleci/node:10.16
14+
steps:
15+
- checkout
16+
- restore_cache:
17+
key: npm-cache
18+
- run: npm install @semantic-release/changelog -D
19+
- run: npm install @semantic-release/git -D
20+
- run: npx semantic-release
21+
- save_cache:
22+
key: npm-cache
23+
paths:
24+
- node_modules
1125
orbs:
1226
go: circleci/[email protected]
1327
version: 2.1
1428
workflows:
1529
default:
1630
jobs:
1731
- build
32+
- release:
33+
filters:
34+
branches:
35+
only: master
36+
requires:
37+
- build
1838
version: 2

0 commit comments

Comments
 (0)