-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcircle.yml
35 lines (34 loc) · 825 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 2.1
jobs:
test:
docker:
- image: cypress/base:10
steps:
- checkout
- restore_cache:
keys:
- cache-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
- run:
name: Yarn install
command: yarn install --frozen-lockfile
- save_cache:
key: cache-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ~/.cache
- run:
command: yarn lint
- run:
command: yarn test
- run:
# test with [email protected]
command: yarn add -D [email protected] && yarn run test
- run:
command: yarn run semantic-release
workflows:
build:
jobs:
- test
version: 2
# Semantic-release bot needs env vars:
# GH_TOKEN: read:org, repo, user:email, write:repo_hook
# NPM_TOKEN: read/release