Skip to content

Commit

Permalink
[V3-Revamp/Feat] @getlit/sdk publish pipeline (#201)
Browse files Browse the repository at this point in the history
* feat: add "group" metadata

* feat: add support on group

* feat: update "publish" script

* chore: update all package versions

* feat: add "whatPackages"

* chore: update scripts

* feat: "yarn bump" for @getlit/sdk

* chore: update log

* chore: update script

* chore: update ui

* chore: improve DX
  • Loading branch information
Ansonhkg authored Aug 23, 2023
1 parent fb99385 commit 75fff82
Show file tree
Hide file tree
Showing 34 changed files with 373 additions and 142 deletions.
6 changes: 4 additions & 2 deletions lit.group.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[
{
"namespace": "@lit-protocol",
"group": "core",
"version": "2.2.49",
"version": "2.2.51",
"npm": "https://registry.npmjs.org/@lit-protocol/lit-node-client"
},
{
"namespace": "@getlit",
"group": "revamp",
"version": "0.0.4",
"version": "0.0.10",
"npm": "https://registry.npmjs.org/@getlit/sdk"
}
]
21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
"test:e2e": "yarn tools --test --e2e run-react-and-test",
"test:unit": "yarn test:packages",
"test:custom": "yarn tools --test --custom",
"publish:packages": "yarn node ./tools/scripts/pub.mjs --prod",
"publish:dev": "yarn node ./tools/scripts/pub.mjs --tag dev",
"publish:test": "yarn node ./tools/scripts/pub.mjs --tag test",
"publish:revamp": "yarn node ./tools/scripts/pub.mjs --tag revamp",
"publish:packages": "yarn node ./tools/scripts/pub.mjs --prod --group=core",
"publish:dev": "yarn node ./tools/scripts/pub.mjs --tag dev --group=core",
"publish:test": "yarn node ./tools/scripts/pub.mjs --tag test --group=core",
"publish:revamp": "yarn node ./tools/scripts/pub.mjs --prod --group=revamp",
"publish:revamp:dev": "yarn node ./tools/scripts/pub.mjs --tag dev --group=revamp",
"publish:app:html": "yarn node ./tools/scripts/build-html.mjs && cd dist/apps/html && vercel --prod",
"buildAndPublish": "yarn build:packages && yarn publish:packages",
"bbp": "yarn bump && yarn build && yarn publish:dev",
Expand All @@ -49,14 +50,18 @@
"apps": "yarn tools --dev --apps",
"watch": "yarn tools --watch",
"v": "yarn tools v",
"bump": "yarn tools v --patch",
"bump:minor": "yarn tools v --minor",
"bump:major": "yarn tools v --major",
"bump": "yarn tools --version --patch --group=core",
"bump:minor": "yarn tools --version --minor --group=core",
"bump:major": "yarn tools --version --major --group=core",
"bump:revamp": "yarn tools --version --patch --group=revamp",
"bump:revamp:minor": "yarn tools --version --minor --group=revamp",
"bump:revamp:major": "yarn tools --version --major --group=revamp",
"b": "git branch --show",
"txServer": "node tx-handler-server.mjs",
"prettier": "nx format:write --all",
"delete:merged-branches": "git branch --merged | egrep -v '(^\\*|master|main|develop)' | xargs git branch -d",
"delete:no-merged-branches": "git branch --no-merged | egrep -v '(^\\*|master|main|develop)' | xargs git branch -d"
"delete:no-merged-branches": "git branch --no-merged | egrep -v '(^\\*|master|main|develop)' | xargs git branch -d",
"what:packages": "node ./tools/scripts/what-packages.mjs"
},
"private": true,
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/access-control-conditions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/auth-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"tags": [
"browser"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/auth-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"crypto": false,
"stream": false
},
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/bls-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/contracts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/core",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -25,6 +25,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/ecdsa-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"crypto": false,
"stream": false
},
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/getlit-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getlit/sdk",
"version": "2.2.49",
"version": "0.0.10",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down Expand Up @@ -32,6 +32,7 @@
".": "./src/index.js",
"./autoLoad": "./src/autoLoad.js"
},
"group": "revamp",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/getlit-sdk/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
BaseAuthenticateOptions,
} from '@lit-protocol/types';

const version = '0.0.714';
const version = '0.0.715';
const PREFIX = 'GetLit SDK';
const logBuffer: Array<any[]> = [];

Expand Down
3 changes: 2 additions & 1 deletion packages/lit-auth-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/lit-auth-client",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down Expand Up @@ -30,6 +30,7 @@
"@simplewebauthn/typescript-types": "^7.0.0",
"nanoid": "3.3.4"
},
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/lit-node-client-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"tags": [
"nodejs"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/lit-node-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"crypto": false,
"stream": false
},
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/lit-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/lit-storage",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -25,6 +25,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/lit-third-party-libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"universal"
],
"gitHead": "0d7334c2c55f448e91fe32f29edc5db8f5e09e4b",
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/misc-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"tags": [
"browser"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/misc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/nacl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"access": "public",
"directory": "../../dist/packages/nacl"
},
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/pkp-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-base",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -25,6 +25,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/pkp-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-client",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -25,6 +25,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/pkp-cosmos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-cosmos",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -25,6 +25,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/pkp-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"tags": [
"universal"
],
"version": "2.2.49",
"version": "2.2.51",
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/pkp-sui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-sui",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -25,6 +25,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/pkp-walletconnect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-walletconnect",
"version": "2.2.49",
"version": "2.2.51",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down Expand Up @@ -31,6 +31,7 @@
"tags": [
"universal"
],
"group": "core",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
Loading

0 comments on commit 75fff82

Please sign in to comment.