Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f77bf2

Browse files
committed
chore(ci): update stale comments and add file-rename warning
- The Install dependencies step still referenced 'nx release publish' from before we migrated to pnpm pack + npx npm publish. Update the comment to describe what's actually happening, and note that pnpm pack does not yet support --ignore-scripts so the security boundary is install-time only. - Add a WARNING block above the publish job's `environment: npm` declaration documenting that the npm trusted-publisher binding pins to this exact workflow path, file name, and environment name. Renaming any of them breaks publishing silently until the npmjs.org config is updated to match.
1 parent 3dbc1f5 commit 8f77bf2

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ jobs:
243243
(github.event_name == 'workflow_dispatch' && inputs.dry_run != true || github.event_name != 'workflow_dispatch')
244244
runs-on: ubuntu-latest
245245
timeout-minutes: 15
246+
# WARNING: npm trusted-publisher binding pins to:
247+
# repository: ag-ui-protocol/ag-ui
248+
# workflow_file_path: .github/workflows/publish-release.yml
249+
# environment_name: npm
250+
# Renaming this file, this `environment:` value, or the workflow path
251+
# breaks npm publishing for every @ag-ui/* package silently until the
252+
# trusted-publisher config on npmjs.org is updated to match.
246253
environment: npm
247254
permissions:
248255
contents: write
@@ -276,11 +283,14 @@ jobs:
276283
with:
277284
name: ts-build-artifacts
278285

279-
# nx release publish needs the full pnpm workspace installed so that:
280-
# 1. nx can resolve the project graph and find the nx-release-publish executor
281-
# 2. pnpm publish can resolve workspace:* protocol deps to real versions
282-
# We use --ignore-scripts to preserve the security boundary: no lifecycle
283-
# scripts run in the same process tree as publishing secrets.
286+
# pnpm pack needs the full workspace installed so that workspace:* protocol
287+
# deps get rewritten to real versions in the published tarball.
288+
# --ignore-scripts preserves the security boundary: no install-time lifecycle
289+
# scripts run in the same process tree as the OIDC token.
290+
# (pnpm pack itself does not support --ignore-scripts as of 10.33.4, so
291+
# the security boundary is enforced at install time only — but `dist/`
292+
# artifacts are downloaded from the build job, so prepack/prepublishOnly
293+
# scripts have no work to do anyway.)
284294
- name: Install dependencies (no lifecycle scripts)
285295
if: needs.build.outputs.ts_count != '0'
286296
run: pnpm install --frozen-lockfile --ignore-scripts

0 commit comments

Comments
 (0)