-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
3,576 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
Oops, something went wrong.