forked from all-contributors/all-contributors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: setup circleci (all-contributors#115)
* ci: setup circleci * docs: update readme * no need for tests script * join slack
- Loading branch information
Showing
8 changed files
with
67 additions
and
583 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,57 @@ | ||
version: 2.1 | ||
|
||
docker_defaults: &docker_defaults | ||
docker: | ||
- image: circleci/node:8.14.0 | ||
|
||
commands: | ||
prep_env: | ||
description: Prepares environment with cache | ||
steps: | ||
- checkout: | ||
path: ~/repo | ||
- restore_cache: | ||
name: Restore node_modules cache | ||
key: all-contributors-{{ checksum "yarn.lock" }}-{{ .Branch }} | ||
save_env_cache: | ||
description: Saves environment cache | ||
steps: | ||
- save_cache: | ||
name: Save node_modules cache | ||
key: all-contributors-{{ checksum "yarn.lock" }}-{{ .Branch }} | ||
paths: | ||
- node_modules/ | ||
|
||
jobs: | ||
node_modules: | ||
<<: *docker_defaults | ||
working_directory: ~/repo | ||
steps: | ||
- prep_env | ||
- run: cat package.json | jq 'del(.scripts.postinstall)' > package.json.tmp && mv package.json.tmp package.json | ||
- run: yarn install --frozen-lockfile | ||
- save_env_cache | ||
deploy: | ||
<<: *docker_defaults | ||
working_directory: ~/repo | ||
steps: | ||
- prep_env | ||
- run: yarn run semantic-release | ||
workflows: | ||
version: 2 | ||
test_and_deploy: | ||
jobs: | ||
- node_modules | ||
- deploy: | ||
requires: | ||
- node_modules | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
|
||
experimental: | ||
notify: | ||
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
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 @@ | ||
8.14.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.9.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "echo \"no tests exist yet... Any ideas?\"", | ||
"postinstall": "node index.js", | ||
"add-contributor": "all-contributors add", | ||
"generate-contributors": "all-contributors generate", | ||
|
Oops, something went wrong.