Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

Commit

Permalink
Renames repository and resolve publish ci task (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored Dec 7, 2017
1 parent 0b09769 commit 8cbe109
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
21 changes: 10 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ jobs:

deploy:
docker:
- image: circleci/node:9.2
- image: circleci/node:8.6
steps:
- checkout
- run: yarn install
- run: yarn bootstrap
- run: yarn run build
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- run: yarn run publish
- run: git add -A
- run: git commit -a -m "Bump to version $(git describe --tag)"
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "ORY Continuous Integration"
- run: |
echo "registry=https://registry.npmjs.org/" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
npm whoami
yarn run lerna publish --repo-version=$(git describe --tag) --yes --force-publish=* --skip-npm
cd packages/hydra-consent-sdk; npm publish
- run: git remote rm origin
- run: git remote add origin https://arekkas:[email protected]/ory/hydra-consent-app-auth0.git
- run: git remote add origin https://arekkas:[email protected]/ory/hydra-auth0-consent-sdk.git
- run: git push origin

workflows:
Expand All @@ -38,8 +42,3 @@ workflows:
- deploy:
requires:
- test
filters:
tags:
only: /.*/
branches:
ignore: /.*/
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydra-consent-auth0-example",
"version": "0.0.0",
"name": "ory-hydra-auth0-consent-example",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
Expand All @@ -12,9 +12,9 @@
"csurf": "^1.9.0",
"debug": "~2.2.0",
"express": "~4.13.4",
"hydra-consent-sdk": "0.0.0",
"jade": "~1.11.0",
"morgan": "~1.7.0",
"ory-hydra-auth0-consent-sdk": "^0.0.1",
"passport": "^0.4.0",
"serve-favicon": "~2.3.0",
"winston": "^2.4.0"
Expand Down
2 changes: 1 addition & 1 deletion example/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var express = require('express');
var passport = require('passport');
var consent = require('hydra-consent-sdk');
var consent = require('ory-hydra-auth0-consent-sdk');
var csrf = require('csurf');
var winston = require('winston');
var ensureLoggedIn = require('connect-ensure-login').ensureLoggedIn;
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"example"
],
"npmClient": "yarn",
"version": "0.0.0"
"version": "0.0.1"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
},
"scripts": {
"bootstrap": "lerna bootstrap",
"start": "lerna run --scope hydra-consent-auth0-example start",
"start": "lerna run --scope ory-hydra-auth0-consent-example start",
"build": "lerna run build",
"test": "lerna run test",
"flow": "lerna run flow",
"postinstall": "lerna bootstrap",
"clean": "lerna clean",
"publish": "lerna publish --skip-git --repo-version=$(git describe --tag) --yes --force-publish=*"
"lerna": "lerna"
}
}
4 changes: 2 additions & 2 deletions packages/hydra-consent-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydra-consent-sdk",
"version": "0.0.0",
"name": "ory-hydra-auth0-consent-sdk",
"version": "0.0.1",
"main": "./lib/index.js",
"scripts": {
"build": "babel src --out-dir ./lib --copy-files --ignore .test.js",
Expand Down

0 comments on commit 8cbe109

Please sign in to comment.