diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cbb1a1983..a10d25f533 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: ci on: - pull_request: { branches: [main] } + pull_request: {} push: { branches: [main] } jobs: @@ -31,6 +31,7 @@ jobs: - uses: facebook/install-dotslash@v2 - name: Stage npm package + id: stage_npm_package env: GH_TOKEN: ${{ github.token }} run: | @@ -40,13 +41,13 @@ jobs: python3 ./codex-cli/scripts/build_npm_package.py \ --release-version "$CODEX_VERSION" \ --pack-output "$PACK_OUTPUT" - echo "PACK_OUTPUT=$PACK_OUTPUT" >> "$GITHUB_ENV" + echo "pack_output=$PACK_OUTPUT" >> "$GITHUB_OUTPUT" - name: Upload staged npm package artifact uses: actions/upload-artifact@v4 with: name: codex-npm-staging - path: ${{ env.PACK_OUTPUT }} + path: ${{ steps.stage_npm_package.outputs.pack_output }} - name: Ensure root README.md contains only ASCII and certain Unicode code points run: ./scripts/asciicheck.py README.md