diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb721d0ec..b9b93ec88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,15 @@ jobs: matrix: node-version: [22, 24] steps: + # The update-deps job commits the updated package.json/package-lock.json to the head + # branch, but `needs` only orders the jobs: without an explicit ref the default + # checkout uses the SHA of the triggering event, so the build (and the artifact that + # later gets published) would still carry the pre-update dependencies. + # Build the branch that received the commit (PR head branch, or the pushed branch); + # fork PRs keep the default commit, as the updater deliberately does not commit there. - uses: actions/checkout@v6 + with: + ref: ${{ github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork && github.sha || github.head_ref) || github.ref_name }} - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v6 with: diff --git a/package-lock.json b/package-lock.json index 0aa41dca0..24d8202b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6900,9 +6900,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001813", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001813.tgz", - "integrity": "sha512-zfjJo4rM0+fUomGDBW/xcDjhIwz/210DGvip2MAMDZ8KHcRPnOHmEgHPZP0UHlZoxr8fYKVJOqcORhYQcG4FKQ==", + "version": "1.0.30001814", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001814.tgz", + "integrity": "sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==", "dev": true, "funding": [ { @@ -7513,9 +7513,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.440", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.440.tgz", - "integrity": "sha512-SghDzqdJokdz8zP8YNlvS74+CwLRoUPDGvP/gFA+HrKVw+pOshUAgx8pXR37xl/u16zGae746rFNWvZ/22kU2Q==", + "version": "1.5.442", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.442.tgz", + "integrity": "sha512-najZYZ3+ZpjN1z3VOsrBiv5ej18vQgfV2lvEmxWzfmKrk4bdm3Owseyud4yGU6DfFn9pyunoAHDDyM4KmP78Ew==", "dev": true, "license": "ISC" },