Skip to content

Commit

Permalink
chore: github-page workflow uses latest dev from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Oct 25, 2024
1 parent 1cfbf88 commit 975a46f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ 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
sed '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 "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 All @@ -41,6 +52,7 @@ jobs:
with:
# upload entire directory
path: "./e2e/dist"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 975a46f

Please sign in to comment.