Skip to content

Commit 4b82dd0

Browse files
committed
build: update circleci and use semantic-release
1 parent 37e8bd2 commit 4b82dd0

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

circle.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
machine:
2-
node:
3-
version: 7
4-
environment:
5-
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
6-
7-
dependencies:
8-
override:
9-
- yarn
10-
cache_directories:
11-
- ~/.cache/yarn
12-
13-
test:
14-
override:
15-
- yarn test
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:12
6+
branches:
7+
ignore:
8+
- gh-pages # list of branches to ignore
9+
- /release\/.*/ # or ignore regexes
10+
steps:
11+
- checkout
12+
- restore_cache:
13+
key: dependency-cache-{{ checksum "yarn.lock" }}
14+
- run:
15+
name: install dependences
16+
command: npm ci
17+
- save_cache:
18+
key: dependency-cache-{{ checksum "yarn.lock" }}
19+
paths:
20+
- ./node_modules
21+
- run:
22+
name: test
23+
command: npm test
24+
- run:
25+
name: Release
26+
command: npx semantic-release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dist"
1515
],
1616
"scripts": {
17-
"test": "echo 'no tests!' && npm run lint",
17+
"test": "npm run build",
1818
"lint": "xo",
1919
"prepublish": "npm run build",
2020
"build": "npm run build:umd && npm run build:cjs",

0 commit comments

Comments
 (0)