diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml deleted file mode 100644 index 80b7c414b..000000000 --- a/.github/workflows/update.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Submodule Change Check - -on: - workflow_dispatch: - -jobs: - check_submodule: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - submodules: "true" - - uses: actions/setup-node@v3 - with: - node-version: 16.14.0 - registry-url: https://registry.npmjs.org/ - - name: Check for submodule changes - id: submodule_check - run: | - # Navigate to the submodule directory - cd packages/chain-registry/chain-registry - # Check if there are any differences between the submodule's HEAD and the commit recorded in the superproject - if git diff --exit-code HEAD..origin/main; then - echo "Submodule has not changed" - echo "CHANGED=false" >> $GITHUB_ENV - else - echo "Submodule has changed" - echo "CHANGED=true" >> $GITHUB_ENV - fi - - - name: Run commands if submodule has changed - if: env.CHANGED == 'true' - run: | - echo "Running commands because the submodule has changed" - # Place your commands here diff --git a/packages/assets/scripts/build.js b/packages/assets/scripts/build.js index e3ce271eb..45a92f6d5 100644 --- a/packages/assets/scripts/build.js +++ b/packages/assets/scripts/build.js @@ -1,8 +1,8 @@ -import { getAssetLists } from '@chain-registry/utils'; -import { assets, chains, ibc } from 'chain-registry'; -import { rmSync, writeFileSync } from 'fs'; -import { mkdirpSync } from 'mkdirp'; -import path from 'path'; +const { getAssetLists } = require('@chain-registry/utils'); +const { assets, chains, ibc } = require('chain-registry'); +const { rmSync, writeFileSync } = require('fs'); +const { mkdirpSync } = require('mkdirp'); +const path = require('path'); const NON_COSMOS_NETWORK_TYPE = 'noncosmos';