Skip to content

Commit cfcc1dd

Browse files
author
jasonwalsh
committed
ci: use node orb
1 parent 47a1b24 commit cfcc1dd

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.circleci/config.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jobs:
2-
build:
2+
test:
33
executor: go/default
44
steps:
55
- checkout
@@ -13,30 +13,26 @@ jobs:
1313
name: Install Terraform
1414
- go/test
1515
release:
16-
docker:
17-
- image: circleci/node:10.16
16+
executor: node/default
1817
steps:
1918
- checkout
20-
- restore_cache:
21-
key: npm-cache
22-
- run: npm install @semantic-release/changelog -D
23-
- run: npm install @semantic-release/git -D
19+
- node/with-cache:
20+
steps:
21+
- run: npm install @semantic-release/changelog -D
22+
- run: npm install @semantic-release/git -D
2423
- run: npx semantic-release
25-
- save_cache:
26-
key: npm-cache
27-
paths:
28-
- node_modules
2924
orbs:
3025
go: circleci/go@0.2.0
26+
node: circleci/node@1.1.6
3127
version: 2.1
3228
workflows:
3329
default:
3430
jobs:
35-
- build
31+
- test
3632
- release:
3733
filters:
3834
branches:
3935
only: master
4036
requires:
41-
- build
37+
- test
4238
version: 2

0 commit comments

Comments
 (0)