diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index 1f436f11..9eeecd91 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -31,16 +31,16 @@ jobs: node-version: '18' registry-url: 'https://registry.npmjs.org' - - name: Install dependencies and build - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - STRAPI_TOKEN: ${{ secrets.STRAPI_TOKEN }} - STRAPI_URL: ${{ secrets.STRAPI_URL }} + - name: Install dependencies run: | yarn install + + - name: Run scripts + run: | yarn export-error-rpc -# - name: Commit changes + + # - name: Commit changes # uses: EndBug/add-and-commit@v9 # with: # author_name: Github-Bot diff --git a/scripts/exports/export-error-rpc.js b/scripts/exports/export-error-rpc.js index af67b1bb..a6c91a1c 100644 --- a/scripts/exports/export-error-rpc.js +++ b/scripts/exports/export-error-rpc.js @@ -127,8 +127,8 @@ const getErrorRpc = async (chainInfo) => { } const writeFileSync = (data) => { - const fileName = `exports/error-rpc.json` - fs.mkdirSync('exports', {recursive: true}) + const fileName = `./packages/chain-list-assets/public/exports/error-rpc.json` + fs.mkdirSync('./packages/chain-list-assets/public/exports', {recursive: true}) const jsonData = JSON.stringify(data, null, 2) fs.writeFileSync(fileName, jsonData, function (err) {