Skip to content

Commit

Permalink
feat(wallet-connect): init package (#1648)
Browse files Browse the repository at this point in the history
Co-authored-by: sergey filyanin <filianin.sergey@gmail.com>
  • Loading branch information
nikitayutanov and sergeyfilyanin authored Oct 3, 2024
1 parent 34c0ed1 commit 578371e
Show file tree
Hide file tree
Showing 66 changed files with 2,319 additions and 571 deletions.
41 changes: 6 additions & 35 deletions .github/workflows/CI-CD-Wallet-Connect-Package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,6 @@ on:
workflow_dispatch:

jobs:
wallet-connect-test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow runs
uses: styfle/cancel-workflow-action@0.4.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Install NodeJS 18.x
uses: actions/setup-node@v2.1.5
with:
node-version: 18.x

- name: 'gear-js-wallet: Install dependencies'
working-directory: utils/wallet-connect
run: yarn install

- name: 'gear-js-wallet: Build pkg'
working-directory: utils/wallet-connect
run: yarn build

- name: 'gear-js-wallet: Run tests'
working-directory: utils/wallet-connect
run: yarn test

wallet-connect-build:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Expand All @@ -56,13 +28,13 @@ jobs:
with:
node-version: 18.x

- name: 'vara-ui: Install dependencies'
- name: 'wallet-connect: Install dependencies'
working-directory: utils/wallet-connect
run: npm install
run: yarn install

- name: 'vara-ui: Build pkg'
- name: 'vwallet-connect: Build pkg'
working-directory: utils/wallet-connect
run: npm run build
run: yarn run build

publish-to-npm:
if: github.event_name == 'push'
Expand All @@ -81,15 +53,14 @@ jobs:
id: check_gear
with:
file-name: utils/wallet-connect/package.json
file-url: https://unpkg.com/@gear-js/ui@latest/package.json
file-url: https://unpkg.com/@gear-js/wallet-connect@latest/package.json
static-checking: localIsNew

- name: '@gear-js/wallet-connect: Publish'
if: steps.check_gear.outputs.changed == 'true'
working-directory: utils/wallet-connect
run: |
export token=$(printenv $(printenv GITHUB_ACTOR))
npm install
yarn install
npm run build
npm config set //registry.npmjs.org/:_authToken=$token --no-workspaces
npm publish
Expand Down
3 changes: 2 additions & 1 deletion idea/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@gear-js/api": "0.38.1",
"@gear-js/react-hooks": "workspace:^",
"@gear-js/ui": "workspace:^",
"@gear-js/wallet-connect": "workspace:^",
"@hcaptcha/react-hcaptcha": "1.8.1",
"@hookform/resolvers": "3.3.2",
"@polkadot/api": "11.0.2",
Expand Down Expand Up @@ -66,7 +67,7 @@
"typescript": "5.5.3",
"vite": "4.4.11",
"vite-plugin-checker": "0.6.2",
"vite-plugin-node-polyfills": "0.15.0",
"vite-plugin-node-polyfills": "0.22.0",
"vite-plugin-svgr": "4.1.0"
}
}
9 changes: 0 additions & 9 deletions idea/frontend/src/features/wallet/assets/enkrypt.svg

This file was deleted.

11 changes: 0 additions & 11 deletions idea/frontend/src/features/wallet/assets/polkadot.svg

This file was deleted.

87 changes: 0 additions & 87 deletions idea/frontend/src/features/wallet/assets/subwallet.svg

This file was deleted.

11 changes: 0 additions & 11 deletions idea/frontend/src/features/wallet/assets/talisman.svg

This file was deleted.

17 changes: 0 additions & 17 deletions idea/frontend/src/features/wallet/consts.ts

This file was deleted.

3 changes: 0 additions & 3 deletions idea/frontend/src/features/wallet/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions idea/frontend/src/features/wallet/types.ts

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions idea/frontend/src/features/wallet/ui/account-button/index.ts

This file was deleted.

This file was deleted.

Loading

0 comments on commit 578371e

Please sign in to comment.