diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 60892c1e..2f7d36d7 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -68,34 +68,18 @@ jobs: - name: Typecheck run: pnpm --dir sdk/typescript run types - - name: Prepare private Windows test root - if: runner.os == 'Windows' - id: windows-temp - shell: pwsh - run: | - $ErrorActionPreference = 'Stop' - $path = Join-Path $env:USERPROFILE '.codex-security-ci-temp' - New-Item -ItemType Directory -Path $path -Force | Out-Null - $sid = (whoami /user /fo csv /nh | ConvertFrom-Csv -Header Name, Sid).Sid - & icacls $path /inheritance:r /grant:r "*${sid}:(OI)(CI)F" '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' | Out-Null - if ($LASTEXITCODE -ne 0) { throw 'Could not secure the Windows test root' } - "path=$path" >> $env:GITHUB_OUTPUT - - name: Test timeout-minutes: 10 env: - TEMP: ${{ steps.windows-temp.outputs.path || runner.temp }} - TMP: ${{ steps.windows-temp.outputs.path || runner.temp }} - TMPDIR: ${{ steps.windows-temp.outputs.path || runner.temp }} - CODEX_SECURITY_ALLOW_MACHINE_POLICY_TEST: ${{ runner.environment == 'github-hosted' && runner.os == 'Windows' && 'true' || 'false' }} + TEMP: ${{ runner.temp }} + TMP: ${{ runner.temp }} + TMPDIR: ${{ runner.temp }} + CODEX_SECURITY_ALLOW_MACHINE_POLICY_TEST: "false" run: pnpm --dir sdk/typescript run test - name: Check formatting run: pnpm --dir sdk/typescript run format - - name: Build - run: pnpm --dir sdk/typescript run build - - name: Pack working-directory: sdk/typescript run: pnpm pack --pack-destination ../../dist @@ -218,10 +202,6 @@ jobs: working-directory: sdk/typescript run: pnpm install --frozen-lockfile - - name: Build - working-directory: sdk/typescript - run: pnpm run build - - name: Pack working-directory: sdk/typescript run: pnpm pack --pack-destination ../../dist diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml index 84ef6889..fd17d9fa 100644 --- a/.github/workflows/node-release.yml +++ b/.github/workflows/node-release.yml @@ -127,7 +127,6 @@ jobs: pnpm --dir sdk/typescript run types pnpm --dir sdk/typescript run test pnpm --dir sdk/typescript run format - pnpm --dir sdk/typescript run build - name: Pack working-directory: sdk/typescript diff --git a/Dockerfile b/Dockerfile index 6968cd9a..bc95d696 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN corepack enable \ COPY sdk/typescript/ ./ RUN pnpm run types \ - && pnpm run build \ && pnpm pack --pack-destination /build/package \ && node scripts/check-package.mjs /build/package/*.tgz