Skip to content

Commit

Permalink
optimize ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Nov 22, 2018
1 parent 9d33070 commit 0597316
Showing 1 changed file with 4 additions and 38 deletions.
42 changes: 4 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,6 @@
#
version: 2
jobs:
publish:
docker:
- image: circleci/node:10.6
working_directory: ~/repo
steps:
- checkout

- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}

- run: yarn install

- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn

- run:
name: prepublish
command: yarn prepublish-ci

- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc

- run:
name: release
command: yarn publish-ci

deploy:
docker:
- image: circleci/node:10.6
Expand Down Expand Up @@ -68,6 +36,10 @@ jobs:
name: deploy
command: yarn deploy-ci

- run:
name: release on NPM
command: yarn publish-ci

test:
docker:
- image: circleci/node:10.6
Expand Down Expand Up @@ -103,12 +75,6 @@ workflows:
ignore:
- master
- gh-pages
- publish:
filters:
branches:
only:
- master
- /rc-.*/
- deploy:
filters:
branches:
Expand Down

0 comments on commit 0597316

Please sign in to comment.