Skip to content

Commit 0b2af75

Browse files
init
0 parents  commit 0b2af75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+9811
-0
lines changed

.circleci/config.yml

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
version: 2
2+
3+
defaults: &defaults
4+
working_directory: ~/auto-release
5+
docker:
6+
- image: circleci/node:10.13.0-browsers
7+
environment:
8+
TZ: '/usr/share/zoneinfo/America/Los_Angeles'
9+
10+
jobs:
11+
install:
12+
<<: *defaults
13+
steps:
14+
- checkout
15+
- restore_cache:
16+
keys:
17+
# Find a cache corresponding to this specific package.json checksum
18+
# when this file is changed, this key will fail
19+
- auto-release-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
20+
- auto-release-{{ .Branch }}-{{ checksum "yarn.lock" }}
21+
- auto-release-{{ .Branch }}
22+
# Find the most recent cache used from any branch
23+
- auto-release-master
24+
- auto-release-
25+
- run: date
26+
- run:
27+
name: Install Dependencies
28+
command: npm i
29+
- save_cache:
30+
key: auto-release-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
31+
paths:
32+
- node_modules
33+
34+
- persist_to_workspace:
35+
root: .
36+
paths:
37+
- .
38+
39+
lint:
40+
<<: *defaults
41+
steps:
42+
- attach_workspace:
43+
at: ~/auto-release
44+
- run:
45+
name: Lint
46+
command: yarn lint
47+
48+
test:
49+
<<: *defaults
50+
steps:
51+
- attach_workspace:
52+
at: ~/auto-release
53+
- run:
54+
name: Test
55+
command: yarn test
56+
# - run:
57+
# name: Send CodeCov Results
58+
# command: bash <(curl -s https://codecov.tools.a.intuit.com/bash) -t $CODECOV_KEY
59+
60+
build:
61+
<<: *defaults
62+
steps:
63+
- attach_workspace:
64+
at: ~/auto-release
65+
- run:
66+
name: Build
67+
command: yarn build
68+
- run:
69+
name: Check PR for semVer label
70+
command: yarn semver:check
71+
- persist_to_workspace:
72+
root: .
73+
paths:
74+
- .
75+
76+
release:
77+
<<: *defaults
78+
steps:
79+
- attach_workspace:
80+
at: ~/auto-release
81+
- run: mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
82+
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
83+
- run:
84+
name: Release
85+
command: yarn run release
86+
87+
workflows:
88+
version: 2
89+
build_and_test:
90+
jobs:
91+
- install:
92+
filters:
93+
tags:
94+
only: /.*/
95+
96+
- lint:
97+
requires:
98+
- install
99+
filters:
100+
tags:
101+
only: /.*/
102+
103+
- test:
104+
requires:
105+
- install
106+
filters:
107+
tags:
108+
only: /.*/
109+
110+
- build:
111+
requires:
112+
- install
113+
filters:
114+
tags:
115+
only: /.*/
116+
# - release:
117+
# requires:
118+
# - build
119+
# - lint
120+
# - test
121+
# filters:
122+
# branches:
123+
# only:
124+
# - master

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
coverage
4+
.DS_store
5+
package-lock.json

.vscode/settings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"files.associations": {
3+
".autorc": "json"
4+
},
5+
"json.schemas": [
6+
{
7+
"fileMatch": ["/.autorc"],
8+
"url": "./src/auto-rc.json"
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)