Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: set it up * style: use Prettier defaults
- Loading branch information
Showing
6 changed files
with
4,965 additions
and
11 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,131 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
node: | ||
docker: | ||
- image: circleci/node:12.7 | ||
working_directory: ~/repo | ||
environment: | ||
GIT_AUTHOR_EMAIL: visjsbot@gmail.com | ||
GIT_AUTHOR_NAME: vis-bot | ||
GIT_COMMITTER_EMAIL: visjsbot@gmail.com | ||
GIT_COMMITTER_NAME: vis-bot | ||
|
||
jobs: | ||
prepare: | ||
executor: node | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: npm ci | ||
|
||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
|
||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- '*' | ||
|
||
build: | ||
executor: node | ||
|
||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: npm run build | ||
|
||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- 'dist' | ||
|
||
lint: | ||
executor: node | ||
|
||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: npm run lint | ||
|
||
type_check: | ||
executor: node | ||
|
||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: npm run type-check | ||
|
||
test: | ||
executor: node | ||
|
||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: npm run test-cov | ||
|
||
release: | ||
executor: node | ||
|
||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: | ||
name: Prepare NPM | ||
command: | | ||
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
- run: | ||
name: Release | ||
command: | | ||
npx semantic-release | ||
workflows: | ||
version: 2 | ||
|
||
build: | ||
jobs: | ||
- prepare | ||
|
||
- build: | ||
requires: | ||
- prepare | ||
|
||
- lint: | ||
requires: | ||
- prepare | ||
|
||
- type_check: | ||
requires: | ||
- prepare | ||
|
||
- test: | ||
requires: | ||
- prepare | ||
|
||
- release: | ||
requires: | ||
- prepare | ||
- build | ||
- lint | ||
- type_check | ||
- test | ||
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,3 @@ | ||
{ | ||
"parser": "typescript" | ||
} |
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,6 @@ | ||
branch: master | ||
plugins: | ||
- '@semantic-release/commit-analyzer' | ||
- '@semantic-release/release-notes-generator' | ||
- '@semantic-release/npm' | ||
- '@semantic-release/github' |
Oops, something went wrong.