mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
Remove the three skipped (gray) checks from the PR check panel without changing functional semantics: - issue-lifecycle: remove the job-level 'if' that skipped the lifecycle job on non-changes-requested pull_request_review events, so it now runs and reports success (the lifecycle handler already no-ops for approved/commented reviews). The changes-requested board transition is unchanged. - release.yml / release-vendor.yml: drop the publish job (and its workflow_dispatch 'publish' input + RELEASE_PUBLISH pass-through) so it no longer appears as a skipped Publish-to-npm check on PRs; the files keep the pack job that validates tarballs on PR/push. - new release-publish.yml / release-vendor-publish.yml: manual workflow_dispatch only, repack on the current tree then publish, so publication behaves exactly as the old publish job (explicit dispatch, uses the packed bytes) but never shows as a PR check. Update the 2026-08-10 review-status note (en/zh/i18n) and the issue-lifecycle spec assertion to match the unconditional lifecycle job. Verification: ci-workflow.spec.ts 19/19, all five workflows YAML-parse, typecheck clean, verify-translation-pairing consistent, note-format 582.
115 lines
3.5 KiB
YAML
115 lines
3.5 KiB
YAML
# Publish the vendored framework sequence to npm. This workflow is manual-only
|
|
# (workflow_dispatch) and intentionally does not listen to pull_request or push:
|
|
# publication must always be an explicit, reviewed act from a vendor-* tag, and
|
|
# it must never appear as a PR check. It repacks the current tree before
|
|
# publishing so the bytes uploaded are exactly what this dispatch produced.
|
|
name: Release publish (vendor)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
PRIMARY_NODE_VERSION: '24'
|
|
DSH_TELEMETRY_DISABLED: '1'
|
|
|
|
jobs:
|
|
pack:
|
|
name: Pack npm tarballs
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
# Complete history: the release scripts read tags.
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
dest: ${{ runner.temp }}/setup-pnpm
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ env.PRIMARY_NODE_VERSION }}
|
|
|
|
- name: Configure pnpm store path
|
|
id: pnpm-store
|
|
run: |
|
|
store_root="$HOME/.local/share/pnpm/store"
|
|
echo "PNPM_CONFIG_STORE_DIR=$store_root" >> "$GITHUB_ENV"
|
|
store_path=$(PNPM_CONFIG_STORE_DIR="$store_root" pnpm store path --silent)
|
|
echo "path=$store_path" >> "$GITHUB_OUTPUT"
|
|
|
|
- uses: actions/cache/restore@v4
|
|
with:
|
|
path: ${{ steps.pnpm-store.outputs.path }}
|
|
key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-
|
|
|
|
- name: Install (immutable)
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Verify release version
|
|
env:
|
|
RELEASE_PUBLISH: 'true'
|
|
run: pnpm run release:verify --family vendor
|
|
|
|
# The vendored packages publish their own sources and build outputs; the
|
|
# host build produces what their manifests select.
|
|
- name: Build
|
|
run: pnpm run build:lib:host
|
|
|
|
- name: Pack release tarballs
|
|
run: pnpm run release:pack --family vendor --out dist/npm-vendor
|
|
|
|
- name: Verify packed install
|
|
run: pnpm run release:verify-packed-install --family vendor --from dist/npm-vendor
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: vendor-npm-tarballs
|
|
path: dist/npm-vendor/*
|
|
if-no-files-found: error
|
|
retention-days: 7
|
|
|
|
publish:
|
|
name: Publish to npm
|
|
needs: pack
|
|
runs-on: ubuntu-24.04
|
|
environment: npm-publish
|
|
concurrency:
|
|
group: Release-publish
|
|
cancel-in-progress: false
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
# Checkout and install carry the release scripts only; no build step.
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
dest: ${{ runner.temp }}/setup-pnpm
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ env.PRIMARY_NODE_VERSION }}
|
|
registry-url: https://registry.npmjs.org
|
|
|
|
- name: Install (immutable, no package scripts)
|
|
run: pnpm install --frozen-lockfile --ignore-scripts
|
|
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: vendor-npm-tarballs
|
|
path: dist/npm-vendor
|
|
|
|
- name: Publish tarballs
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
run: pnpm run release:publish --family vendor --from dist/npm-vendor
|