Skip to content

Commit

Permalink
chore: 0.0.1 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dani8art committed Nov 12, 2019
1 parent a5be767 commit 8ff139b
Show file tree
Hide file tree
Showing 3 changed files with 3,576 additions and 260 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ version: 2.1
references:
js_deps_cache_key: &js_deps_cache_key v1-dependency-{{ checksum "package-lock.json" }}

commands:
git_authoring:
description: Authoring git commit.
steps:
- run: git config --global push.default matching
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Totem Bot"

jobs:
build:
docker:
Expand Down Expand Up @@ -34,6 +42,34 @@ jobs:
name: Execute unit tests.
command: npm run test:ci

release:
docker:
- image: circleci/node:12
steps:
- checkout
- git_authoring
- restore_cache:
keys:
- *js_deps_cache_key
- run:
name: Bump and publish the new version.
command: npm run release

npm_publish:
docker:
- image: circleci/node:12
steps:
- checkout
- run:
name: Get latest changes from the repository.
command: git pull
- run:
name: Authenticate against npm registry.
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
- run:
name: Publish RESTHapi Gen package to npm.
command: npm publish

workflows:
version: 2
default:
Expand Down
Loading

0 comments on commit 8ff139b

Please sign in to comment.