Skip to content

Commit

Permalink
Merge pull request #4882 from Shopify/autoupdate-graphql-codegen
Browse files Browse the repository at this point in the history
Fill in environment to enable codegen
  • Loading branch information
amcaplan authored Nov 19, 2024
2 parents 73e7fe4 + 5c02e6a commit c1f5bf3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/update-graphql-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"ignoreBinaries": [
"packages/features/snapshots/regenerate.sh",
"bin/*",
"gh",
"istanbul-merge"
],
"ignoreDependencies": [
Expand Down

0 comments on commit c1f5bf3

Please sign in to comment.