diff --git a/.github/workflows/drop.yml b/.github/workflows/drop.yml index c833c93..6aeb8e3 100644 --- a/.github/workflows/drop.yml +++ b/.github/workflows/drop.yml @@ -17,7 +17,7 @@ jobs: drop_pre_release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: cache: 'npm' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8db50b6..00504f3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -53,7 +53,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: cache: 'npm' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 97a3795..3995f32 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: os: [ macos-latest, windows-latest ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: cache: 'npm' diff --git a/.github/workflows/typechecking.yml b/.github/workflows/typechecking.yml index 27d8869..183d30a 100644 --- a/.github/workflows/typechecking.yml +++ b/.github/workflows/typechecking.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: cache: 'npm' diff --git a/packages/main/src/modules/bin.ts b/packages/main/src/modules/bin.ts index 9397ce2..db0bad9 100644 --- a/packages/main/src/modules/bin.ts +++ b/packages/main/src/modules/bin.ts @@ -165,6 +165,19 @@ export async function install() { // no need to install node and npm in dev mode since they should already be in the $PATH for dev environment to work log.info('[Install] Skipping installation of node and npm binaries in DEV mode'); } + // TODO: remove this once we have merged the asset-packs PR + log.info('[CLI] Installing some dev dependencies...', { path }); + for (const pkg of [ + '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', + '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', + ]) { + const npmInstall = run('npm', process.platform === 'win32' ? 'npm.cmd' : 'npm', { + args: ['install', '--save-dev', pkg, '--loglevel', 'error'], + cwd: APP_UNPACKED_PATH, + workspace: APP_UNPACKED_PATH, + }); + await npmInstall.wait(); + } installed.resolve(); } catch (error: any) { log.error('[Install] Failed to install node and npm binaries:', error.message);