Skip to content

Commit

Permalink
finalizes ci auto publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmeconry committed Jul 17, 2019
1 parent ac33be5 commit 7774338
Showing 1 changed file with 7 additions and 34 deletions.
41 changes: 7 additions & 34 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,41 +44,22 @@ jobs:
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/project/.npmrc
- add_ssh_keys
- run:
name: configure git
command: |
git config user.email "[email protected]"
git config user.name "CircleCI"
- run:
name: set package version
command: npm version from-git
command: npm version $(git describe --tag)
- run:
name: Publish package
command: npm publish
- persist_to_workspace:
root: .
paths:
- ./package.json
pushToGit:
docker:
- image: circleci/node:10
working_directory: ~/project
environment:
BASH_ENV: bash_env
steps:
- checkout
- attach_workspace:
at: ~/project/
- add_ssh_keys
- run:
name: configure git
command: |
git config user.email "[email protected]"
git config user.name "CircleCI"
- run:
name: commit
command: |
git add .
git commit -m "[skip ci] bump version"
- run:
name: push to git
command: git push

persistCache:
docker:
- image: circleci/node:10
Expand Down Expand Up @@ -137,13 +118,5 @@ workflows:
ignore: /.*/
tags:
only: /\d+\.\d+\.\d+/
- pushToGit:
requires:
- publish
filters:
branches:
ignore: /.*/
tags:
only: /\d+\.\d+\.\d+/


0 comments on commit 7774338

Please sign in to comment.