Skip to content

Commit aab23c6

Browse files
authored
circleci 2 に移行 (#267)
* chore: switch to circleci 2 * chore: send back status from circleci * chore: use Environment.CIRCLE_CACHE_VERSION in cache key
1 parent ecce32a commit aab23c6

4 files changed

Lines changed: 2415 additions & 9 deletions

File tree

.circleci/config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
keys:
10+
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ checksum "package.json" }}
11+
- run: npm i
12+
- save_cache:
13+
paths:
14+
- node_modules
15+
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ checksum "package.json" }}
16+
- run: npm run build
17+
- store_artifacts:
18+
path: build
19+
destination: preview
20+
- run: 'npx status-back -s -c circleci/preview -r nodejsjp/nodejsjp.github.com "preview build success!" "https://${CIRCLE_BUILD_NUM}-856151-gh.circle-artifacts.com/0/preview/index.html"'
21+
deploy:
22+
docker:
23+
- image: circleci/node:8
24+
steps:
25+
- run: ./update.sh
26+
workflows:
27+
version: 2
28+
build-deploy:
29+
jobs:
30+
- build
31+
- deploy:
32+
requires:
33+
- build
34+
filters:
35+
branches:
36+
only: source

circle.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
},
4141
"devDependencies": {
4242
"branch-pipe": "^1.0.1",
43-
"rimraf": "^2.5.4"
43+
"rimraf": "^2.5.4",
44+
"status-back": "^1.1.0"
4445
}
4546
}

0 commit comments

Comments
 (0)