-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Connected semantic releases and changelog closes #1
- Loading branch information
Showing
11 changed files
with
18,136 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
version: 2 | ||
|
||
job_defaults: &job_defaults | ||
docker: | ||
- image: circleci/node:latest | ||
working_directory: ~/project/repo | ||
|
||
cache_key: &cache_key ng-helpers-deps-cache-{{ .Branch }}-{{ checksum "package-lock.json" }} | ||
dist_key: &dist_key ng-helpers-dist-{{ .Revision }} | ||
|
||
jobs: | ||
install: | ||
<<: *job_defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: *cache_key | ||
- run: | ||
name: install-dependencies | ||
command: npm ci | ||
- save_cache: | ||
key: *cache_key | ||
paths: | ||
- node_modules | ||
|
||
lint: | ||
<<: *job_defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: *cache_key | ||
- run: | ||
name: lint | ||
command: npm run lint | ||
|
||
test-lib: | ||
<<: *job_defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: *cache_key | ||
- run: | ||
name: test | ||
command: npm run test | ||
|
||
build-lib: | ||
<<: *job_defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: *cache_key | ||
- run: | ||
name: test | ||
command: npm run build | ||
- save_cache: | ||
key: *dist_key | ||
paths: | ||
- dist | ||
|
||
test-app: | ||
<<: *job_defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: *cache_key | ||
- restore_cache: | ||
key: *dist_key | ||
- run: | ||
name: test | ||
command: npm run test:app | ||
|
||
release: | ||
<<: *job_defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: *cache_key | ||
- restore_cache: | ||
key: *dist_key | ||
- run: | ||
name: release | ||
command: npm run semantic-release || true | ||
|
||
workflows: | ||
version: 2 | ||
build-release: | ||
jobs: | ||
- install | ||
- lint: | ||
requires: | ||
- install | ||
- test-lib: | ||
requires: | ||
- install | ||
- build-lib: | ||
requires: | ||
- lint | ||
- test-lib | ||
- test-app: | ||
requires: | ||
- build-lib | ||
- release: | ||
requires: | ||
- test-app | ||
filters: | ||
branches: | ||
only: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": false, | ||
"arrowParens": "avoid" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.