Skip to content

Commit

Permalink
ci: fix release setup
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
  • Loading branch information
carsonfarmer committed Nov 9, 2019
1 parent 0ea78e4 commit a1bc33d
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,40 +46,46 @@ jobs:
- restore_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
- run: npm install
- attach_workspace:
at: ~/js-ipfs-lite
- run:
name: build docs
command: npm run docs
- run:
name: prepare docs
command: |
npm install -g --silent gh-pages@2.1.1
git config --global user.email "circleci@tetile.io"
git config --global user.name "circleci"
- add_ssh_keys:
fingerprints:
- 9f:f4:f0:11:36:b4:d9:c4:d6:e8:9a:78:9a:be:57:73
- run:
name: deploy docs
command: gh-pages --message "[skip ci] docs update" --dist docs
- persist_to_workspace:
root: ~/js-ipfs-lite
paths:
- docs
deploy:
docker:
- image: node:10.13.0
working_directory: ~/js-ipfs-lite
steps:
- checkout
- restore_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
key: npm-v1-{{ checksum "package-lock.json" }}-{{ arch }}
- restore_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
- run: yarn install
- run: npm install
- attach_workspace:
at: ~/js-ipfs-lite
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/js-ipfs-lite/.npmrc
- run:
name: Publish package
command: npm publish --access=public --unsafe-perm
command: npm publish --access=public
- run:
name: prepare docs
command: |
npm install -g --silent gh-pages@2.1.1
git config --global user.email "circleci@textile.io"
git config --global user.name "circleci"
- add_ssh_keys:
fingerprints:
- 9f:f4:f0:11:36:b4:d9:c4:d6:e8:9a:78:9a:be:57:73
- run:
name: deploy docs
command: gh-pages --message "[skip ci] docs update" --dist docs

workflows:
version: 2
Expand Down

0 comments on commit a1bc33d

Please sign in to comment.