Skip to content

Commit 292d30c

Browse files
committed
updates
1 parent 14cfd2a commit 292d30c

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.github/workflows/npmPublish.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ jobs:
2121
- name: Install tsx
2222
run: npm install -g tsx
2323

24-
- name: Install tsx
25-
run: npm install -g dotenv
26-
27-
- name: Create .env file
28-
run: |
29-
echo "ENGINE_OPENAPI_URL=${{ secrets.ENGINE_OPENAPI_URL }}" >> .env
30-
3124
- name: Install dependencies
3225
working-directory: ./sdk
3326
run: yarn install

src/scripts/generate-sdk.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
import { execSync } from "child_process";
2-
import dotenv from "dotenv";
32
import fs from "fs";
43
import { kill } from "process";
54

6-
dotenv.config();
7-
8-
const ENGINE_OPENAPI_URL = process.env.ENGINE_OPENAPI_URL;
5+
const ENGINE_OPENAPI_URL = "https://demo.web3api.thirdweb.com/json";
96

107
async function main() {
118
try {
12-
console.log("ENGINE_OPENAPI_URL:", ENGINE_OPENAPI_URL);
13-
if (!ENGINE_OPENAPI_URL) {
14-
throw new Error("ENGINE_OPENAPI_URL is not defined");
15-
}
169
const response = await fetch(ENGINE_OPENAPI_URL);
1710
const jsonData = await response.json();
1811

0 commit comments

Comments
 (0)