From 3b35f1776f09bc7c1f4f04e7007d8c09ff635bda Mon Sep 17 00:00:00 2001 From: Dominic Fournier Date: Wed, 10 Apr 2024 17:50:15 -0400 Subject: [PATCH] Updated action, replace npm run with bun run --- .github/workflows/update-graph-ids.yml | 14 ++++++++------ package.json | 6 +++--- src/types/graph.types.ts | 2 +- src/types/pinax.types.ts | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update-graph-ids.yml b/.github/workflows/update-graph-ids.yml index fee45ca..f559e86 100644 --- a/.github/workflows/update-graph-ids.yml +++ b/.github/workflows/update-graph-ids.yml @@ -2,23 +2,25 @@ name: Update Graph IDs on: schedule: - - cron: '0/5 * * * *' + - cron: '*/5 * * * *' jobs: sync-graph-ids: runs-on: ubuntu-latest steps: + - uses: actions/checkout@master + - uses: oven-sh/setup-bun@v1 + - run: bun install + - name: Every Day - run: npm run generate:type_graphid + run: bun run generate:type_graphid + - uses: stefanzweifel/git-auto-commit-action@v2.3.0 with: commit_message: Apply automatic changes branch: ${{ github.head_ref }} - # Optional git params - commit_options: '--no-verify --signoff' - # Optional glob pattern of files which should be added to the commit - file_pattern: src/\*.js + file_pattern: src/types/graph.types.ts env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index d494ac5..70b5756 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,11 @@ "scripts": { "fetch-graph-ids": "bun ./scripts/fetchGraphIDs.ts", "format": "prettier --log-level warn --write \"./**/*.{js,jsx,ts,tsx}\"", - "generate": "npm run generate:data && npm run generate:types", - "generate:data": "npm run generate:data_index && npm run generate:data_json", + "generate": "bun run generate:data && bun run generate:types", + "generate:data": "bun run generate:data_index && bun run generate:data_json", "generate:data_index": "bun ./scripts/generate/data_index.ts", "generate:data_json": "bun ./scripts/generate/data_json.ts", - "generate:types": "npm run generate:type_graphid && npm run generate:type_pinaxid && npm run format", + "generate:types": "bun run generate:type_graphid && bun run generate:type_pinaxid && bun run format", "generate:type_graphid": "bun ./scripts/generate/type_graphid.ts", "generate:type_pinaxid": "bun ./scripts/generate/type_pinaxid.ts", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/src/types/graph.types.ts b/src/types/graph.types.ts index 4c94e31..f8122f4 100644 --- a/src/types/graph.types.ts +++ b/src/types/graph.types.ts @@ -1,6 +1,6 @@ // This file is auto-generated on pre-commit to avoid maintaining it. // Do not modify manually as it will be overwritten. -// Last generation on 4/10/2024, 4:41:00 PM. +// Last generation on 4/10/2024, 5:50:16 PM. export type GraphID = | 'arbitrum-one' | 'arbitrum-sepolia' diff --git a/src/types/pinax.types.ts b/src/types/pinax.types.ts index 0798e27..f621ed4 100644 --- a/src/types/pinax.types.ts +++ b/src/types/pinax.types.ts @@ -1,6 +1,6 @@ // This file is auto-generated on pre-commit to avoid maintaining it / circular dependencies. // Do not modify manually as it will be overwritten. -// Last generation on 4/10/2024, 4:41:00 PM. +// Last generation on 4/10/2024, 5:50:16 PM. export type PinaxID = | 'arbgoerli' | 'arbsepolia'