@@ -68,30 +68,31 @@ jobs:
68
68
- name : Generate API types
69
69
run : |
70
70
echo "Generating TypeScript types from comfy-api@${{ steps.api-info.outputs.commit }}..."
71
- pnpm dlx openapi-typescript ./comfy-api/openapi.yml --output ./src/types/comfyRegistryTypes.ts
71
+ mkdir -p ./packages/registry-types/src
72
+ pnpm dlx openapi-typescript ./comfy-api/openapi.yml --output ./packages/registry-types/src/comfyRegistryTypes.ts
72
73
73
74
- name : Validate generated types
74
75
run : |
75
- if [ ! -f ./src/ types/comfyRegistryTypes.ts ]; then
76
+ if [ ! -f ./packages/registry- types/src /comfyRegistryTypes.ts ]; then
76
77
echo "Error: Types file was not generated."
77
78
exit 1
78
79
fi
79
80
80
81
# Check if file is not empty
81
- if [ ! -s ./src/ types/comfyRegistryTypes.ts ]; then
82
+ if [ ! -s ./packages/registry- types/src /comfyRegistryTypes.ts ]; then
82
83
echo "Error: Generated types file is empty."
83
84
exit 1
84
85
fi
85
86
86
87
- name : Lint generated types
87
88
run : |
88
89
echo "Linting generated Comfy Registry API types..."
89
- pnpm lint:fix:no-cache -- ./src/ types/comfyRegistryTypes.ts
90
+ pnpm lint:fix:no-cache -- ./packages/registry- types/src /comfyRegistryTypes.ts
90
91
91
92
- name : Check for changes
92
93
id : check-changes
93
94
run : |
94
- if [[ -z $(git status --porcelain ./src/ types/comfyRegistryTypes.ts) ]]; then
95
+ if [[ -z $(git status --porcelain ./packages/registry- types/src /comfyRegistryTypes.ts) ]]; then
95
96
echo "No changes to Comfy Registry API types detected."
96
97
echo "changed=false" >> $GITHUB_OUTPUT
97
98
exit 0
@@ -121,4 +122,4 @@ jobs:
121
122
labels : CNR
122
123
delete-branch : true
123
124
add-paths : |
124
- src/ types/comfyRegistryTypes.ts
125
+ packages/registry- types/src /comfyRegistryTypes.ts
0 commit comments