Skip to content

Commit 13194d2

Browse files
committed
Simplified and moved submodules (postinstall) script
1 parent 844958a commit 13194d2

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/checks.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
with:
12-
fetch-depth: 0 # Fetch the full history instead of a shallow clone
12+
submodules: recursive
1313

1414
- uses: actions/setup-node@v4
1515
with:
1616
node-version-file: '.nvmrc'
17+
cache: 'yarn'
1718

1819
- name: Enable Corepack
1920
run: corepack enable
2021

21-
- name: Yarn Install
22-
run: yarn install --immutable
22+
- name: Install Dependencies
23+
run: yarn
2324

2425
- name: Build All Packages
2526
run: yarn build:all

.github/workflows/coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919
with:
20-
fetch-depth: 0 # Fetch the full history instead of a shallow clone
20+
fetch-depth: 0
21+
submodules: recursive
2122
- name: Use Node.js
2223
uses: actions/setup-node@v4
2324
with:
2425
node-version-file: '.nvmrc'
26+
cache: 'yarn'
2527

2628
- uses: browser-actions/setup-chrome@v1
2729
- run: chrome --version
@@ -30,7 +32,7 @@ jobs:
3032
run: corepack enable
3133

3234
- name: Install dependencies
33-
run: yarn install --immutable
35+
run: yarn
3436

3537
- name: Build packages
3638
run: yarn build:all

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ jobs:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0 # Fetch the full history instead of a shallow clone
18+
fetch-depth: 0
19+
submodules: recursive
1920
- name: Setup Node.js
2021
uses: actions/setup-node@v4
2122
with:
2223
node-version-file: '.nvmrc'
24+
cache: 'yarn'
2325

2426
- name: Enable Corepack
2527
run: corepack enable
2628

2729
- name: Install Dependencies
28-
run: yarn install --immutable
30+
run: yarn
2931

3032
- name: Build Packages
3133
run: yarn build:all

.yarn/install-state.gz

-2 Bytes
Binary file not shown.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
],
99
"scripts": {
1010
"build:all": "yarn workspaces foreach --all --parallel run build",
11-
"postinstall": "yarn update-submodules",
12-
"update-submodules": "git submodule update --init --recursive",
1311
"docs": "cd docs && yarn dlx mint dev",
1412
"release": "changeset publish && git push --follow-tags",
1513
"release:internal": "yarn build:all && yarn changeset && yarn changeset version --snapshot internal && yarn changeset publish --no-git-tag --snapshot --tag internal",

packages/registry/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"build:cjs": "tsc --outDir dist/cjs --module commonjs",
1515
"build:esm": "tsc --outDir dist/esm --module esnext",
1616
"build:types": "tsc --project ./tsconfig.declaration.json",
17-
"test": "jest"
17+
"test": "jest",
18+
"postinstall": "git submodule update --init --recursive"
1819
},
1920
"homepage": "https://github.com/sei-protocol/sei-js#readme",
2021
"keywords": [

0 commit comments

Comments
 (0)