From f077ce57f496bcae2fba4f7d95ac08b14621aee6 Mon Sep 17 00:00:00 2001 From: Ariel Caplan Date: Tue, 19 Nov 2024 14:48:39 +0200 Subject: [PATCH 1/2] Fill in environment to enable codegen --- .github/workflows/update-graphql-deps.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/update-graphql-deps.yml b/.github/workflows/update-graphql-deps.yml index cb6b382f855..d4d5e91b511 100644 --- a/.github/workflows/update-graphql-deps.yml +++ b/.github/workflows/update-graphql-deps.yml @@ -5,6 +5,14 @@ on: - cron: '13 0,6,12,18 * * *' # Runs at 00:13, 06:13, 12:13, and 18:13 UTC workflow_dispatch: # Allows manual triggering from the GitHub UI +env: + DEBUG: '1' + SHOPIFY_CLI_ENV: development + SHOPIFY_CONFIG: debug + PNPM_VERSION: '8.15.7' + SHOPIFY_FLAG_CLIENT_ID: ${{ secrets.SHOPIFY_FLAG_CLIENT_ID }} + SHOPIFY_CLI_PARTNERS_TOKEN: ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }} + jobs: update-graphql-deps: name: Update GraphQL Dependencies @@ -21,6 +29,8 @@ jobs: with: node-version: '22.11.0' - name: Get schemas for codegen + env: + GH_TOKEN: ${{ secrets.SHOPIFY_GH_READ_CONTENT_TOKEN }} run: pnpm graphql-codegen:get-graphql-schemas - name: Run graphql-codegen run: pnpm graphql-codegen From 5c02e6a0e263d6e6edfc5336c5766b402b31c84b Mon Sep 17 00:00:00 2001 From: Ariel Caplan Date: Tue, 19 Nov 2024 19:37:03 +0200 Subject: [PATCH 2/2] Ignore gh in knip --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 61abbda6f59..acd7a09aa7f 100644 --- a/package.json +++ b/package.json @@ -149,6 +149,7 @@ "ignoreBinaries": [ "packages/features/snapshots/regenerate.sh", "bin/*", + "gh", "istanbul-merge" ], "ignoreDependencies": [