Skip to content

Commit

Permalink
feat(automatize-deploy): job to automatize package deploy to npm (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Streeterxs authored Jan 9, 2022
1 parent 37ec76e commit 15fee50
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,26 @@ jobs:
command: yarn install
- run:
command: yarn jest
- run:
command: yarn build
deploy:
steps:
- run:
name: Authenticate npm registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npm publish
workflows:
build-and-test:
jobs:
- build-and-test
- build-and-test
- deploy:
requires:
- build-and-test
filters:
tags:
only: /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
branchs:
only: /^feature\/\.*/

3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ junit.xml
tsconfig.json
rollup.config.js
yarn-error.log
yarn.lock
yarn.lock
scripts

0 comments on commit 15fee50

Please sign in to comment.