-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add `.circleci` config Remove `.travis.yml` config Change badge Populate `.npmignore` Remove `npmpub`, add `standard-version` devDependencies Adjust npm scripts
- Loading branch information
1 parent
2e5b246
commit 82b0faf
Showing
6 changed files
with
662 additions
and
279 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,96 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: /usr/src/app | ||
docker: | ||
- image: node:10 | ||
|
||
jobs: | ||
build-job: | ||
<<: *defaults | ||
steps: | ||
# Checkout repository | ||
- checkout | ||
|
||
# Restore cache | ||
- restore_cache: | ||
key: yarn-{{ checksum "yarn.lock" }} | ||
|
||
# Disable yarn progress bar for perf | ||
- run: | ||
command: yarn config set no-progress | ||
|
||
# Disable yarn engine compatibility errors | ||
- run: | ||
command: yarn config set ignore-engines true | ||
|
||
# Greenkeeper-lockfile | ||
- run: | ||
name: Installing Greenkeeper-lockfile | ||
command: yarn global add greenkeeper-lockfile@1 | ||
|
||
# Install dependencies | ||
- run: | ||
name: Installing Dependencies | ||
command: yarn | ||
|
||
# Keep cache | ||
- save_cache: | ||
key: yarn-{{ checksum "yarn.lock" }} | ||
paths: | ||
- "node_modules" | ||
|
||
# Update yarn.lock | ||
- run: | ||
name: Updating lockfile | ||
command: greenkeeper-lockfile-update | ||
|
||
# Test | ||
- run: | ||
name: Testing | ||
command: yarn test-with-coverage | ||
|
||
# Build | ||
- run: | ||
name: Uploading test coverage | ||
command: yarn coverage | ||
|
||
# Upload yarn.lock | ||
- run: | ||
name: Uploading lockfile | ||
command: greenkeeper-lockfile-upload | ||
|
||
- persist_to_workspace: | ||
root: /usr/src/app | ||
paths: | ||
- dist/* | ||
- .circleci/* | ||
|
||
deploy-job: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
# Must be absolute path or relative path from working_directory | ||
at: /usr/src/app | ||
|
||
- run: | ||
name: Authenticating with registry | ||
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
|
||
- run: | ||
name: Publishing package | ||
command: npm publish | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build-job | ||
- deploy-job: | ||
requires: | ||
- build-job | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
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,5 @@ | ||
.* | ||
*.yml | ||
src/ | ||
.nyc_output/ | ||
coverage/ |
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.