diff --git a/.circleci/config.yml b/.circleci/config.yml index ee8e356..8de183f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 "circleci@ory.am" + - 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:$GITHUB_TOKEN@github.com/ory/hydra-consent-app-auth0.git + - run: git remote add origin https://arekkas:$GITHUB_TOKEN@github.com/ory/hydra-auth0-consent-sdk.git - run: git push origin workflows: @@ -38,8 +42,3 @@ workflows: - deploy: requires: - test - filters: - tags: - only: /.*/ - branches: - ignore: /.*/ diff --git a/example/package.json b/example/package.json index 3158719..1ff7498 100644 --- a/example/package.json +++ b/example/package.json @@ -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" @@ -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" diff --git a/example/routes/index.js b/example/routes/index.js index d8b2342..42239d9 100644 --- a/example/routes/index.js +++ b/example/routes/index.js @@ -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; diff --git a/lerna.json b/lerna.json index 0ef0bad..f7d6e0c 100644 --- a/lerna.json +++ b/lerna.json @@ -5,5 +5,5 @@ "example" ], "npmClient": "yarn", - "version": "0.0.0" + "version": "0.0.1" } diff --git a/package.json b/package.json index 0e32aae..6d62b90 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/packages/hydra-consent-sdk/package.json b/packages/hydra-consent-sdk/package.json index 77314bf..ae7abe8 100644 --- a/packages/hydra-consent-sdk/package.json +++ b/packages/hydra-consent-sdk/package.json @@ -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",