Skip to content

Commit

Permalink
Update CI-CD-Wallet-Connect-Package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Oct 2, 2024
1 parent 3b757f7 commit 8828381
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 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/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Install NodeJS 18.x
uses: actions/[email protected]
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,15 @@ 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

0 comments on commit 8828381

Please sign in to comment.