Skip to content

Commit

Permalink
Merge pull request #1 from chvarkov/circleci-project-setup
Browse files Browse the repository at this point in the history
Config circle ci.
  • Loading branch information
chvarkov authored Oct 5, 2020
2 parents 0b5a6a5 + 4c854b3 commit cbaa92f
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 28 deletions.
64 changes: 64 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
version: 2.1

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:8.9.1

jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run:
name: Install dependencies
command: npm i
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- persist_to_workspace:
root: ~/repo
paths: .
publish:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run:
name: Install dependencies
command: npm i
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- persist_to_workspace:
root: ~/repo
paths: .
- run:
name: Build
command: npm run build && cd dist
- run:
name: Authentication
command: npx npm-cli-login -u ${NPM_USER} -p ${NPM_PASS} -e ${NPM_EMAIL}
- run:
name: Publish
command: npm publish --access public
workflows:
version: 2
test-publish:
jobs:
- test
- publish:
requires:
- test
filters:
branches:
only: master
24 changes: 0 additions & 24 deletions .gitlab-ci.yml

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestlab/google-recaptcha",
"version": "1.0.3",
"version": "1.0.5",
"description": "Google recaptcha module for NestJS.",
"keywords": [
"nestjs",
Expand All @@ -18,14 +18,14 @@
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/nestlab/google-recaptcha.git"
"url": "https://github.com/chvarkov/google-recaptcha.git"
},
"author": "Alexey Chvarkov",
"license": "MIT",
"bugs": {
"url": "https://gitlab.com/nestlab/google-recaptcha/issues"
"url": "https://github.com/chvarkov/google-recaptcha/issues"
},
"homepage": "https://gitlab.com/nestlab/google-recaptcha#readme",
"homepage": "https://gitlab.com/nestlab/google-recaptcha",
"peerDependencies": {
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0"
Expand Down

0 comments on commit cbaa92f

Please sign in to comment.