diff --git a/.github/workflows/deploy-graph.yml b/.github/workflows/deploy-graph.yml index 42b2678..ec47364 100644 --- a/.github/workflows/deploy-graph.yml +++ b/.github/workflows/deploy-graph.yml @@ -95,7 +95,7 @@ jobs: run: | npm run auth ${{secrets.GRAPH_ACCESS_TOKEN}} npm run update-subgraphrc ${{needs.identify-env.outputs.environment}} - version=$(cat deployment.json | jq -r .${{needs.identify-env.outputs.environment}}.version | tr -d '"') + version=$(cat deployment.json | jq -r '."${{needs.identify-env.outputs.environment}}".version' | tr -d '"') npm run generate ${{needs.identify-env.outputs.environment}} npm run deploy:${{needs.identify-env.outputs.environment}} ${version} - name: Commit and push diff --git a/deployment.json b/deployment.json index bc0e3ab..c33bfcf 100644 --- a/deployment.json +++ b/deployment.json @@ -5,9 +5,9 @@ "version": "0.0.45" }, "development-arb": { - "version": "0.0.1", "isMajorUpdate": false, - "isMinorUpdate": false + "isMinorUpdate": false, + "version": "0.0.1" }, "staging": { "isMajorUpdate": false, @@ -15,9 +15,9 @@ "version": "0.0.12" }, "staging-arb": { - "version": "0.0.1", "isMajorUpdate": false, - "isMinorUpdate": false + "isMinorUpdate": false, + "version": "0.0.1" }, "sepolia": { "isMajorUpdate": false, @@ -30,13 +30,13 @@ "version": "0.0.2" }, "arbitrum-sepolia": { - "version": "0.0.0", "isMajorUpdate": false, - "isMinorUpdate": false + "isMinorUpdate": false, + "version": "0.0.0" }, "arbitrum-one": { - "version": "0.0.0", "isMajorUpdate": false, - "isMinorUpdate": false + "isMinorUpdate": false, + "version": "0.0.0" } } diff --git a/scripts/update-subgraphrc.ts b/scripts/update-subgraphrc.ts index a4fba28..6d1ea18 100644 --- a/scripts/update-subgraphrc.ts +++ b/scripts/update-subgraphrc.ts @@ -13,9 +13,9 @@ const arrowedNetworks = [ type Network = (typeof arrowedNetworks)[number]; const EMPTY_DEPLOYMENT = { - version: '0.0.0', isMajorUpdate: false, isMinorUpdate: false, + version: '0.0.0', }; class Main {