File tree Expand file tree Collapse file tree 3 files changed +97
-34
lines changed Expand file tree Collapse file tree 3 files changed +97
-34
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ defaults : &defaults
4
+ working_directory : /usr/src/app
5
+ docker :
6
+ - image : node:10
7
+
8
+ jobs :
9
+ build-job :
10
+ << : *defaults
11
+ steps :
12
+ # Checkout repository
13
+ - checkout
14
+
15
+ # Restore cache
16
+ - restore_cache :
17
+ key : yarn-{{ checksum "yarn.lock" }}
18
+
19
+ # Disable yarn progress bar for perf
20
+ - run :
21
+ command : yarn config set no-progress
22
+
23
+ # Disable yarn engine compatibility errors
24
+ - run :
25
+ command : yarn config set ignore-engines true
26
+
27
+ # Greenkeeper-lockfile
28
+ - run :
29
+ name : Installing Greenkeeper-lockfile
30
+ command : yarn global add greenkeeper-lockfile@1
31
+
32
+ # Install dependencies
33
+ - run :
34
+ name : Installing Dependencies
35
+ command : yarn
36
+
37
+ # Keep cache
38
+ - save_cache :
39
+ key : yarn-{{ checksum "yarn.lock" }}
40
+ paths :
41
+ - " node_modules"
42
+
43
+ # Update yarn.lock
44
+ - run :
45
+ name : Updating lockfile
46
+ command : greenkeeper-lockfile-update
47
+
48
+ # Test
49
+ - run :
50
+ name : Testing
51
+ command : yarn test
52
+
53
+ # Build
54
+ - run :
55
+ name : Uploading test coverage
56
+ command : yarn codecov
57
+
58
+ # Upload yarn.lock
59
+ - run :
60
+ name : Uploading lockfile
61
+ command : greenkeeper-lockfile-upload
62
+
63
+ - persist_to_workspace :
64
+ root : /usr/src/app
65
+ paths :
66
+ - dist/*
67
+ - .circleci/*
68
+
69
+ deploy-job :
70
+ << : *defaults
71
+ steps :
72
+ - attach_workspace :
73
+ # Must be absolute path or relative path from working_directory
74
+ at : /usr/src/app
75
+
76
+ - run :
77
+ name : Authenticating with registry
78
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
79
+
80
+ - run :
81
+ name : Publishing package
82
+ command : npm publish
83
+
84
+ workflows :
85
+ version : 2
86
+ build :
87
+ jobs :
88
+ - build-job
89
+ - deploy-job :
90
+ requires :
91
+ - build-job
92
+ filters :
93
+ tags :
94
+ only : /^v.*/
95
+ branches :
96
+ ignore : /.*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ npm version] ( https://img.shields.io/npm/v/nuxt-netlify-cms.svg )] ( https://www.npmjs.com/package/nuxt-netlify-cms )
4
4
[ ![ npm] ( https://img.shields.io/npm/dt/nuxt-netlify-cms.svg?style=flat-square )] ( https://npmjs.com/package/nuxt-netlify-cms )
5
- [ ![ Build Status ] ( https://img.shields.io/travis/ medfreeman/nuxt-netlify-cms-module/master.svg?label=build )] ( https://travis-ci.org /medfreeman/nuxt-netlify-cms-module )
5
+ [ ![ CircleCI ] ( https://img.shields.io/circleci/project/github/ medfreeman/nuxt-netlify-cms-module/master.svg )] ( https://circleci.com/gh /medfreeman/nuxt-netlify-cms-module )
6
6
[ ![ Codecov] ( https://img.shields.io/codecov/c/github/medfreeman/nuxt-netlify-cms-module.svg?style=flat-square )] ( https://codecov.io/gh/medfreeman/nuxt-netlify-cms-module )
7
7
[ ![ Greenkeeper badge] ( https://badges.greenkeeper.io/medfreeman/nuxt-netlify-cms-module.svg )] ( https://greenkeeper.io/ )
8
8
[ ![ Dependencies] ( https://img.shields.io/david/medfreeman/nuxt-netlify-cms-module.svg )] ( https://david-dm.org/medfreeman/nuxt-netlify-cms-module )
You can’t perform that action at this time.
0 commit comments