Skip to content

Commit 7767a22

Browse files
committed
Update package.json path
1 parent 7eae2c7 commit 7767a22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/update-generator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: check-updates
3838
run: |
3939
# Get current version from the OpenAI package.json file
40-
CURRENT_VERSION=$(node -p "require('./package.json').dependencies['@typespec/http-client-csharp']" 2>/dev/null || echo "unknown")
40+
CURRENT_VERSION=$(node -p "require('.codegen/package.json').dependencies['@typespec/http-client-csharp']" 2>/dev/null || echo "unknown")
4141
4242
echo "Current OpenAI version: $CURRENT_VERSION"
4343

scripts/Submit-GeneratorUpdatePr.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ try {
6666
Push-Location $RepoPath
6767

6868
# Get current version from package.json files
69-
$openAiPackageJsonPath = "package.json"
69+
$openAiPackageJsonPath = "codegen/package.json"
7070

7171
if (-not (Test-Path $openAiPackageJsonPath)) {
7272
throw "OpenAI package.json not found at: $openAiPackageJsonPath"
@@ -153,7 +153,7 @@ try {
153153

154154
# Add and commit changes
155155
Write-Log "Adding and committing changes"
156-
git add package.json
156+
git add codegen/package.json
157157
git add codegen/generator/src/OpenAI.Library.Plugin.csproj
158158
git add package-lock.json
159159
git add ./ # Add any generated code changes

0 commit comments

Comments
 (0)