Skip to content

Commit

Permalink
chore: workflow for github page prod
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Oct 31, 2024
1 parent 9ff1a2e commit 8fba21b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/github-page-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ jobs:
with:
node-version: "20"

- name: Perform Code Update
run: |
# Fetch the dev version using curl
VERSION=$(curl -s https://registry.npmjs.org/-/package/@consensys/starknet-snap/dist-tags | jq -r '.dev')
# Update the URL in the file (ensure we use -i for in-place replacement)
sed -i 's|https://snaps.consensys.io/starknet/get-starknet/v1/remoteEntry.js|https://dev.snaps.consensys.io/starknet/get-starknet/v1/remoteEntry.js|g' ./packages/core/src/wallet/virtualWallets/metaMaskVirtualWallet.ts
# Update the MetaMaskSnapWallet line with the new version
sed -i "s|const wallet = new MetaMaskSnapWallet(metaMaskVirtualWallet.provider, \"\*\")|const wallet = new MetaMaskSnapWallet(metaMaskVirtualWallet.provider, \"$VERSION\")|g" ./packages/core/src/wallet/virtualWallets/metaMaskVirtualWallet.ts
- name: Install pnpm
run: npm install -g pnpm

Expand Down

0 comments on commit 8fba21b

Please sign in to comment.