Skip to content

Commit 2658cf4

Browse files
committed
fix: force libs installation
1 parent 5fa914b commit 2658cf4

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

.github/workflows/drop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
drop_pre_release:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
20+
- uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
2323
cache: 'npm'

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
runs-on: ubuntu-latest
5454

5555
steps:
56-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
56+
- uses: actions/checkout@v4
5757
- uses: actions/setup-node@v4
5858
with:
5959
cache: 'npm'

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
os: [ macos-latest, windows-latest ]
1818
runs-on: ${{ matrix.os }}
1919
steps:
20-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
20+
- uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
2323
cache: 'npm'

.github/workflows/typechecking.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
17+
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
2020
cache: 'npm'

packages/main/src/modules/bin.ts

+13
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,19 @@ export async function install() {
165165
// no need to install node and npm in dev mode since they should already be in the $PATH for dev environment to work
166166
log.info('[Install] Skipping installation of node and npm binaries in DEV mode');
167167
}
168+
// TODO: remove this once we have merged the asset-packs PR
169+
log.info('[CLI] Installing some dev dependencies...', { path });
170+
for (const pkg of [
171+
'https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/add-admin-toolkit-smart-item/dcl-sdk-7.7.5-13322726812.commit-b78f7c8.tgz',
172+
'https://sdk-team-cdn.decentraland.org/@dcl/asset-packs/branch/feat/add-admin-toolkit-smart-item/dcl-asset-packs-2.1.3-13322708802.commit-059ee23.tgz',
173+
]) {
174+
const npmInstall = run('npm', process.platform === 'win32' ? 'npm.cmd' : 'npm', {
175+
args: ['install', '--save-dev', pkg, '--loglevel', 'error'],
176+
cwd: APP_UNPACKED_PATH,
177+
workspace: APP_UNPACKED_PATH,
178+
});
179+
await npmInstall.wait();
180+
}
168181
installed.resolve();
169182
} catch (error: any) {
170183
log.error('[Install] Failed to install node and npm binaries:', error.message);

0 commit comments

Comments
 (0)