Skip to content

Commit 07e3636

Browse files
authored
Fix build (#40)
* fix build issue * add workflow and fix prettier
1 parent df1365d commit 07e3636

File tree

4 files changed

+2949
-2
lines changed

4 files changed

+2949
-2
lines changed

.github/workflows/build.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Yarn Install and Build
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Use Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: "18" # Specify the Node.js version you want to use
17+
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
21+
22+
- name: Cache yarn dependencies
23+
uses: actions/cache@v3
24+
with:
25+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
30+
- name: Install Dependencies
31+
run: yarn install --frozen-lockfile
32+
33+
- name: Build
34+
run: yarn run build

.github/workflows/pull-request.yml

+4
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ jobs:
2020
spellcheck:
2121
name: Run spellcheck
2222
uses: ./.github/workflows/spellcheck.yml
23+
24+
build:
25+
name: Build
26+
uses: ./.github/workflows/build.yml

pages/interacting/methods.en.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ Each method has its own specific features and schema. Detailed information on ea
124124
- **Result**: The resulting block information with transaction hashes
125125
- **Errors**:
126126
- `BLOCK_NOT_FOUND`: If the specified block does not exist
127-
</details>
127+
128+
</details>
128129

129130
### `starknet_getBlockWithReceipts`
130131

@@ -136,7 +137,8 @@ Each method has its own specific features and schema. Detailed information on ea
136137
- **Result**: The resulting block information with transaction hashes
137138
- **Errors**:
138139
- `BLOCK_NOT_FOUND`: If the specified block does not exist
139-
</details>
140+
141+
</details>
140142

141143
### `starknet_getBlockWithTxs`
142144

0 commit comments

Comments
 (0)