diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d195995..443a751f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,12 @@ jobs: - run: pnpm audit signatures - name: Release env: + NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} + NEXT_PUBLIC_ALCHEMY_ETHEREUM_HTTP: ${{ secrets.NEXT_PUBLIC_ALCHEMY_ETHEREUM_HTTP }} + NEXT_PUBLIC_ALCHEMY_ETHEREUM_KEY: ${{ secrets.NEXT_PUBLIC_ALCHEMY_ETHEREUM_KEY }} + NEXT_PUBLIC_ALCHEMY_SEPOLIA_HTTP: ${{ secrets.NEXT_PUBLIC_ALCHEMY_SEPOLIA_HTTP }} + NEXT_PUBLIC_ALCHEMY_SEPOLIA_KEY: ${{ secrets.NEXT_PUBLIC_ALCHEMY_SEPOLIA_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JWT_SECRET: ${{ secrets.JWT_SECRET }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release diff --git a/lib/client/constants.ts b/lib/client/constants.ts index 30526369..cf89d44e 100644 --- a/lib/client/constants.ts +++ b/lib/client/constants.ts @@ -154,9 +154,7 @@ export const getCurrentNetworkHttpUrl = (chainId: number) => { const httpUrl = getRpcHttpUrlForNetwork.get(chainId); if (!httpUrl) { - if (process.env.NODE_ENV === "production") - throw new Error(`No RPC URL was defined for chain ID: ${chainId}`); - else console.error(`No RPC URL was defined for chain ID: ${chainId}`); + throw new Error(`No RPC URL was defined for chain ID: ${chainId}`); } return httpUrl;