Skip to content

Commit

Permalink
feat: upgrade zkid sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcwoshizz committed May 12, 2023
1 parent bf028c8 commit 83a3249
Show file tree
Hide file tree
Showing 21 changed files with 371 additions and 268 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy stable

on:
workflow_dispatch:

jobs:
deploy-test:
runs-on: ubuntu-latest
environment: master
env:
YARN_ENABLE_SCRIPTS: false

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"

- name: Install deps and build:app
run: |
yarn install --immutable | grep -v 'YN0013'
yarn build:app
- name: Deploy to server
uses: appleboy/scp-action@master
with:
username: ubuntu
host: ${{ secrets.HOST }}
port: 22
key: ${{ secrets.KEY }}
source: ${{ github.workspace }}/packages/app/build
target: "/home/ubuntu/cred"
strip_components: 5
rm: true
5 changes: 2 additions & 3 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Deploy test
on:
push:
branches:
- dev
- master
- dev
workflow_dispatch:

jobs:
deploy-test:
Expand All @@ -29,8 +30,6 @@ jobs:
- name: Install deps and build
run: |
yarn install --immutable | grep -v 'YN0013'
yarn lint
yarn test
yarn build
- name: Deploy to test environment
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/pr-any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ jobs:
name: ${{ matrix.step }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"

- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
- name: Install deps
run: |
yarn install --immutable | grep -v 'YN0013'
- name: ${{ matrix.step }}
run: |
yarn ${{ matrix.step }}
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Release

on:
push:
branches:
- master
workflow_dispatch:

jobs:
release:
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
"build:code": "NODE_ENV=production yarn zcloak-dev-build-ts",
"build:release": "yarn zcloak-ci-ghact-app",
"build:zip": "rm -rf ./zkid-credential.zip && cd packages/app/build && zip -r -FS ../../../zkid-credential.zip .",
"bump": "yarn changeset version && yarn create-tag",
"changeset": "zcloak-exec-changeset",
"clean": "zcloak-dev-clean-build",
"create-tag": "node --loader @esbuild-kit/esm-loader scripts/create-tag.ts",
"get-release-text": "node --loader @esbuild-kit/esm-loader scripts/get-release-text.ts",
"lint": "zcloak-dev-run-lint",
"lint:dependencies": "zcloak-dev-lint-dependencies --fix",
"start": "yarn clean && cd packages/app && yarn webpack serve --config webpack.serve.cjs --port 3000",
Expand All @@ -46,7 +42,7 @@
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/ua-parser-js": "^0.7.36",
"@zcloak/dev": "^0.29.1",
"@zcloak/dev": "^0.31.0",
"concurrently": "^7.6.0",
"devtron": "^1.4.0",
"humps": "^2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/app-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": "0.24.0",
"dependencies": {
"@credential/react-components": "workspace:^",
"@zcloak/crypto": "^1.2.3",
"@zcloak/ctype": "^1.2.5"
"@zcloak/crypto": "^1.4.1",
"@zcloak/ctype": "^1.2.10"
}
}
12 changes: 6 additions & 6 deletions packages/app-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"dependencies": {
"@credential/react-dids": "workspace:^",
"@polkadot/util": "^11.0.2",
"@zcloak/crypto": "^1.2.3",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/crypto": "^1.4.1",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"dexie": "^3.2.3"
}
}
24 changes: 12 additions & 12 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"@credential/react-dids": "workspace:^",
"@credential/react-hooks": "workspace:^",
"@mui/icons-material": "^5.11.11",
"@zcloak/crypto": "^1.2.3",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3",
"@zcloak/login-did": "^1.1.4",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/verify": "^1.3.3",
"@zcloak/wasm": "^1.0.2",
"@zcloak/wasm-asm": "^1.0.2",
"@zcloak/crypto": "^1.4.1",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8",
"@zcloak/login-did": "^1.1.9",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"@zcloak/verify": "^1.3.8",
"@zcloak/wasm": "^1.1.1",
"@zcloak/wasm-asm": "^1.1.1",
"file-saver": "^2.0.5",
"material-ui-popup-state": "^5.0.5",
"moment": "^2.29.4",
Expand All @@ -52,7 +52,7 @@
"devDependencies": {
"@svgr/webpack": "^6.5.1",
"@types/punycode": "^2.1.0",
"@zcloak/dev": "^0.29.1",
"@zcloak/dev": "^0.31.0",
"assert": "^2.0.0",
"babel-loader": "^9.1.2",
"buffer": "^6.0.3",
Expand Down
8 changes: 4 additions & 4 deletions packages/page-account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"@mui/icons-material": "^5.11.11",
"@mui/material": "^5.11.13",
"@mui/system": "^5.11.13",
"@zcloak/crypto": "^1.2.3",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3",
"@zcloak/crypto": "^1.4.1",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8",
"file-saver": "^2.0.5",
"react-router-dom": "^6.9.0"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/page-claims/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"@credential/react-hooks": "workspace:^",
"@mui/icons-material": "^5.11.11",
"@polkadot/util": "^11.0.2",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"file-saver": "^2.0.5",
"moment": "^2.29.4"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/page-ctype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"@credential/react-dids": "workspace:^",
"@credential/react-hooks": "workspace:^",
"@mui/icons-material": "^5.11.11",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"react-router-dom": "^6.9.0"
}
}
8 changes: 4 additions & 4 deletions packages/page-did/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@credential/react-components": "workspace:^",
"@credential/react-dids": "workspace:^",
"@polkadot/util": "^11.0.2",
"@zcloak/crypto": "^1.2.3",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3"
"@zcloak/crypto": "^1.4.1",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8"
}
}
4 changes: 2 additions & 2 deletions packages/page-hk-event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "module",
"version": "0.3.0",
"dependencies": {
"@zcloak/login-did": "^1.1.4",
"@zcloak/login-providers": "^1.2.2",
"@zcloak/login-did": "^1.1.9",
"@zcloak/login-providers": "^1.2.4",
"@zcloak/ui-store": "^0.9.7"
}
}
10 changes: 5 additions & 5 deletions packages/page-issue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"@credential/react-ctype": "workspace:^",
"@credential/react-dids": "workspace:^",
"@credential/react-hooks": "workspace:^",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6"
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1"
}
}
14 changes: 7 additions & 7 deletions packages/page-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"@credential/react-components": "workspace:^",
"@credential/react-dids": "workspace:^",
"@credential/react-hooks": "workspace:^",
"@zcloak/crypto": "^1.2.3",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/crypto": "^1.4.1",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"moment": "^2.29.4"
}
}
10 changes: 5 additions & 5 deletions packages/page-tasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"@credential/react-dids": "workspace:^",
"@credential/react-hooks": "workspace:^",
"@mui/icons-material": "^5.11.11",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"moment": "^2.29.4",
"react-router-dom": "^6.9.0"
}
Expand Down
16 changes: 8 additions & 8 deletions packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"@mui/material": "^5.11.13",
"@mui/system": "^5.11.13",
"@polkadot/util": "^11.0.2",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3",
"@zcloak/login-did": "^1.1.4",
"@zcloak/message": "^1.0.8",
"@zcloak/vc": "^1.2.6",
"@zcloak/verify": "^1.3.3",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8",
"@zcloak/login-did": "^1.1.9",
"@zcloak/message": "^1.0.13",
"@zcloak/vc": "^1.3.1",
"@zcloak/verify": "^1.3.8",
"qr-scanner": "^1.4.2",
"qrcode-generator": "^1.4.4",
"react-dropzone": "^14.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ctype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@credential/react-dids": "workspace:^",
"@mui/icons-material": "^5.11.11",
"@polkadot/util": "^11.0.2",
"@zcloak/ctype": "^1.2.5"
"@zcloak/ctype": "^1.2.10"
}
}
20 changes: 10 additions & 10 deletions packages/react-dids/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
"@credential/react-hooks": "workspace:^",
"@mui/icons-material": "^5.11.11",
"@polkadot/util": "^11.0.2",
"@zcloak/crypto": "^1.2.3",
"@zcloak/ctype": "^1.2.5",
"@zcloak/did": "^1.3.3",
"@zcloak/did-resolver": "^1.1.2",
"@zcloak/keyring": "^1.1.3",
"@zcloak/login-did": "^1.1.4",
"@zcloak/login-providers": "^1.2.2",
"@zcloak/message": "^1.0.8",
"@zcloak/crypto": "^1.4.1",
"@zcloak/ctype": "^1.2.10",
"@zcloak/did": "^1.3.8",
"@zcloak/did-resolver": "^1.1.3",
"@zcloak/keyring": "^1.1.8",
"@zcloak/login-did": "^1.1.9",
"@zcloak/login-providers": "^1.2.4",
"@zcloak/message": "^1.0.13",
"@zcloak/ui-did-keyring": "^1.1.8",
"@zcloak/ui-store": "^0.9.7",
"@zcloak/vc": "^1.2.6",
"@zcloak/verify": "^1.3.3",
"@zcloak/vc": "^1.3.1",
"@zcloak/verify": "^1.3.8",
"eventemitter3": "^5.0.0",
"react-router-dom": "^6.9.0"
}
Expand Down
Loading

0 comments on commit 83a3249

Please sign in to comment.