Skip to content

feat: add npm-publish action - #29

Merged
rekmarks-consensys-1 merged 48 commits into
mainfrom
ocap/npm-publish
Dec 2, 2026
Merged

rekmarks-consensys-1 merged 48 commits into
mainfrom
ocap/npm-publish

Conversation

@rekmarks-consensys-1

@rekmarks-consensys-1 rekmarks-consensys-1 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Lines added, by type

Code Tests Docs Generated Lockfiles Config Total
743 (27%) 1170 (43%) 265 0 553 17 2748

Lockfiles: pkdiff/package-lock.json. Docs include NOTICE.

Adds npm-publish, a port of MetaMask/action-npm-publish v7 (640617d). It publishes every public workspace package whose current version isn't on npm yet:

  • packages already on npm: with OIDC, staged, with provenance for public repositories;
  • a package's first publish: with npm-token;
  • no usable credential: it packs instead (a dry run), adds a pkdiff report, and uploads the tarballs and reports as an artifact. The report needs npm 7 or later, which can read the version 3 lockfile pkdiff is installed from; the README says so.

Upstream's sanitize step is kept and extended, so the repository can't run code while publishing. The README example runs node-checkout-and-setup with skip-install: true in both the dry-run and publish jobs, and says nothing from the repository may run earlier in the publish job: code that runs earlier could persist into the action's steps through $GITHUB_PATH, the Corepack cache or files in the checkout. Packing and publishing need only the committed yarn.lock, not node_modules.

To review: the first commit is a verbatim copy of upstream's action.yml, README.md and scripts/ at 640617d, so reviewing commit by commit shows each change against upstream. Upstream is MIT-licensed; NOTICE carries its copyright and permission notice, and the README links to it.

Differences from upstream

  • Removed inputs: staged-publish and provenance. OIDC publishes are always staged, with provenance for public repositories.
  • No Slack notification. Upstream posts an "awaiting deployment" Slack message after publishing. The slack-webhook-url, channel, subteam, username and icon-url inputs, the payload and post steps, and the slackapi/slack-github-action dependency are removed.
  • publish.sh runs directly in each workspace, in the order yarn workspaces list prints them, stopping at the first failure, instead of through yarn workspaces foreach exec. That command puts the bins of the workspace and its dependencies first on PATH, so a package declaring a bash, jq, npm or yarn bin ran in place of the real tool, with the token in its environment.
  • dry-run must be true, false or empty. A first step rejects any other value before anything else runs. Upstream published for any value other than true, such as True or yes.
  • Every workspace is packed and published with the root's Yarn, as corepack yarn@<root version>, and the sanitize step rejects a workspace other than the root that names a package manager (packageManager or devEngines.packageManager). Corepack runs the Yarn that the nearest package.json names, and Yarn 1 runs yarn npm publish as the workspace's own npm script, which got the token or the OIDC request variables.
  • Publish commands are bash arrays rather than strings split on spaces, and npm view and pkdiff get the package spec after --, so a name starting with - isn't read as an option.
  • The dry-run artifact has a name, npm-publish-dry-run-<sha>. It sets overwrite: true, so a second dry run in the same workflow run replaces it instead of failing.
  • pkdiff 2.0.1 and its 49 dependencies are pinned by a lockfile, pkdiff/package-lock.json, with integrity hashes, to https://registry.npmjs.org tarballs. Upstream runs npm i -g pkdiff@2.0.1, so the dependencies resolve by version range at install time. scripts/install-pkdiff.sh runs npm ci --ignore-scripts --install-strategy=shallow --registry https://registry.npmjs.org in a new directory, $RUNNER_TEMP/npm-publish-pkdiff, holding only the manifest and the lockfile: outside the repository, so no .npmrc in it applies; without install scripts; and with --registry, since npm ci downloads the lockfile's URLs from the configured registry and npm_config_registry would otherwise redirect them. The lockfile nests pkdiff's dependencies under it (pkdiff/.npmrc sets install-strategy=shallow for npm install), as a global install does: pkdiff reads diff2html's files from its own node_modules. --install-strategy=shallow on npm ci keeps that layout when the caller's job sets another npm_config_install_strategy, such as linked, and install-pkdiff.sh fails if diff2html isn't then nested under pkdiff. pkdiff/package.json overrides pkdiff's minimist from 0.2.1 to 0.2.4, which fixes a prototype-pollution advisory (GHSA-xvch-5gv4-984h); the override's key is minimist@0.2.1, so handlebars keeps its own minimist 1.2.8. report.sh runs that install's pkdiff by path, with --registry https://registry.npmjs.org, which it passes to the npm pack that downloads <name>@latest. That doesn't override a scope's registry (such as npm_config_@scope:registry set through $GITHUB_ENV), and pkdiff has no option that does, so for a scoped package the dry run's diff report can still be made against a tarball from another registry. report.sh ignores pkdiff's failures, as for a package not yet on npm, but fails if pkdiff isn't installed. The report is informational only; nothing is published from it. The README says so.
  • npm view is pinned to https://registry.npmjs.org with --registry and, for a scoped package, --@<scope>:registry, which --registry doesn't override. Command-line options take precedence over npm_config_* variables set by the caller's job or through $GITHUB_ENV, and over .npmrc files, so neither can redirect the lookup that chooses between the token and OIDC. npm view also runs with no environment variables but PATH and with empty user and global configuration files, so a proxy (HTTPS_PROXY, npm_config_https_proxy and the like) can't answer 404 for a package that exists. A self-hosted runner that reaches npm only through a proxy therefore fails the lookup; the README says so.
  • npm lookup errors other than E404 fail the action, instead of reading as "not on npm", which would send an existing package down the token path.
  • A single-package repository publishes only if its root isn't private and its version isn't on npm yet.
  • Lifecycle scripts are removed from private workspaces too.
  • Tarballs go to $RUNNER_TEMP/npm-publish-packages rather than /tmp, so stale tarballs on a reused runner aren't reported or uploaded.
  • dry-run is set once, true if any package was packed, and is also an action output. Upstream wrote it once per package, so the last package handled decided it.
  • The generated Yarn configuration is scoped to the action's own steps. Upstream wrote YARN_RC_FILENAME to $GITHUB_ENV, so every later Yarn command in the caller's job used the action's stripped-down configuration. It is now a step output passed to the publish step's env:, and main.sh fails if it is empty.
  • YARN_* variables are unset in any case, except the action's own. Yarn reads their names case-insensitively, so yarn_rc_filename would load the repository's .yarnrc.yml and yarn_npm_publish_registry would redirect the publish.
  • .corepack.env is ignored (COREPACK_ENV_FILE=0). Corepack reads that file from the project, and COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 there lets packageManager name any URL as the Yarn to download and run with the token and OIDC available. COREPACK_* variables set by the caller's job, such as a mirror's, are left alone.
  • BASH_ENV and ENV are cleared in each step's env:, so values an earlier step wrote to $GITHUB_ENV don't run code in the action's steps. (The runner refuses NODE_OPTIONS in $GITHUB_ENV, so it can only come from the caller's own workflow.)
  • The release pull request is looked up in its own step, so GH_TOKEN is no longer in the Publish step's environment.
  • No xtrace where the token is held. With RUNNER_DEBUG, main.sh, publish.sh and needs-publish.sh don't run under set -x, which printed the npm token; GitHub masks it only if it came from a secret.
  • Package names and versions are validated before anything prints or uses them: a name must follow npm's rules and a version must be a strict semantic version, so v1.2.3 fails (the README says so). Workspace locations with a control character fail. Names and versions reach xargs NUL-separated. Yarn's output while packing or publishing, which lists file names, is printed between ::stop-commands::<random> and ::<random>::, and a rejected registry is printed as JSON on one line, so no repository text is read as a workflow command.

On a reused (self-hosted) runner, the sanitize step's changes outlast the job: ~/.yarnrc.yml stays deleted, the generated .yarnrc-<random>.yml stays in the checkout's parent directory, and the checkout's manifests keep their lifecycle scripts removed. The README says so.

Security properties

  • No repository-controlled code runs from the sanitize step onward: no repository .yarnrc.yml, Yarn plugins, yarnPath, lifecycle scripts, YARN_* overrides, .corepack.env or package bins, and no BASH_ENV or ENV from earlier steps. Nothing from the repository may run earlier in the job (see the README).
  • Packages are published only to https://registry.npmjs.org, and looked up only there. pkdiff and its dependencies are installed from there too, at the versions and integrity hashes in pkdiff/package-lock.json, without install scripts; its diff report can follow a scope's registry (see above).
  • The token is used only for a package's first publish. Packages already on npm publish only through OIDC, staged and with provenance.
  • GH_TOKEN isn't in the Publish step's environment, and the npm token isn't traced under RUNNER_DEBUG.
  • No manifest value is interpolated into a run: step, and none is printed where the runner could read it as a workflow command.

Tests

test/publish-modes.sh runs publish.sh and main.sh with yarn and npm replaced by stand-ins that record their arguments:

  • every token, OIDC and dry-run combination, and an invalid dry-run;
  • --tag, --staged and --provenance, that the token is unset for OIDC publishes, and that package specs follow --;
  • 0.0.0 packages, an empty npm-tag, Yarn below 4.16, and npm lookup errors other than E404;
  • a single-package repository that is private, or whose version is already on npm;
  • an empty YARN_RC_FILENAME;
  • invalid names and versions, including a v-prefixed version such as v1.2.3, which fail without being read as workflow commands, and Yarn's output wrapped in ::stop-commands::;
  • that npm view gets --registry https://registry.npmjs.org and, for a scoped package, --@<scope>:registry=https://registry.npmjs.org, and runs with no proxy or npm_config_* variables and with empty configuration files;
  • that packing and publishing run corepack yarn@<root version>, never plain yarn, and that a Yarn version that isn't MAJOR.MINOR.PATCH fails;
  • that install-pkdiff.sh runs npm ci --ignore-scripts --install-strategy=shallow --registry https://registry.npmjs.org in a new directory (an .npmrc left there doesn't survive) and fails if diff2html isn't nested under pkdiff afterwards, and that report.sh runs that install's pkdiff, not one on PATH, with --registry https://registry.npmjs.org, and fails if it isn't installed;
  • that pkdiff/package-lock.json is lockfile version 3, nests diff2html under pkdiff, resolves every package to https://registry.npmjs.org/ with a sha512 integrity hash (on failure, the test lists only the packages that aren't), and has pkdiff's minimist at 0.2.4;
  • that RUNNER_DEBUG doesn't print the token;
  • that a monorepo's workspaces are handled in Yarn's order and stop at the first failure.

test/environment-variables.sh checks that scripts/environment.sh leaves only the action's own YARN_* variables, in any case, and that real Corepack then ignores a .corepack.env that allows a URL as packageManager.

The workflow runs both, and runs the action with real Yarn against fixture projects built by test/make-fixture.sh:

  • a dry run that packs only the new public package (one already on npm at its version, a private one and a 0.0.0 one are skipped), after which YARN_RC_FILENAME isn't set in the caller's steps;
  • a dry run with npm_config_registry and a scope's registry set to an unreachable host in $GITHUB_ENV (after a control showing npm uses them), which still looks packages up on, and installs pkdiff from, https://registry.npmjs.org;
  • a dry run for a package already on npm, with npm_config_install_strategy=linked set in $GITHUB_ENV, which writes a pkdiff report with pkdiff installed from the lockfile;
  • dry-run: true with a token;
  • dry-run: false without credentials, for both a new and an existing package;
  • dry-run: yes, which fails without packing and before the sanitize step writes its Yarn configuration;
  • a foreign publishConfig.registry;
  • a workspace naming Yarn 1 through packageManager or devEngines.packageManager, which the sanitize step rejects before its npm script can run;
  • Yarn 4.15;
  • a polyrepo;
  • a canary project whose plugin, yarnPath, lifecycle scripts and bash/jq/npm/yarn bins would write marker files, as would BASH_ENV set in $GITHUB_ENV (first checked to run code in an ordinary step);
  • that YARN_* overrides such as YARN_NPM_REGISTRY_SERVER, and lowercase ones such as yarn_npm_publish_registry and yarn_rc_filename, don't change the configuration the Publish step reads, after a control showing they do apply without environment.sh.

To test before ocap-kernel's first release with these actions: run its publish-release.yml from a branch via workflow_dispatch, with the publish job's environment and id-token removed, so the action packs instead of publishing.

🤖 Generated with Claude Code

@rekmarks-consensys-1
rekmarks-consensys-1 force-pushed the ocap/npm-publish-release branch 2 times, most recently from 6b23cd2 to d842764 Compare November 23, 2026 23:05
@rekmarks-consensys-1
rekmarks-consensys-1 force-pushed the ocap/npm-publish branch 2 times, most recently from 73c7a26 to d8ce20b Compare November 24, 2026 19:36
@rekmarks-consensys-1
rekmarks-consensys-1 force-pushed the ocap/npm-publish-release branch 2 times, most recently from 1444a1d to c417f28 Compare November 24, 2026 20:58
@rekmarks-consensys-1
rekmarks-consensys-1 force-pushed the ocap/npm-publish branch 2 times, most recently from d536f2a to 62b89f9 Compare November 24, 2026 21:24
@rekmarks-consensys-1
rekmarks-consensys-1 force-pushed the ocap/npm-publish branch 3 times, most recently from f4b9982 to f11467a Compare November 24, 2026 22:54
@rekmarks-consensys-1
rekmarks-consensys-1 force-pushed the ocap/npm-publish-release branch 2 times, most recently from b78588a to 7aa4358 Compare November 25, 2026 00:16
@socket-security

socket-security Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpkdiff@​2.0.17110010076100

View full report

@socket-security

socket-security Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Critical priority
Critical CVE: npm cross-spawn: Command injection on Windows when spawning batch files

CVE: GHSA-ghv9-86vm-4v8m cross-spawn: Command injection on Windows when spawning batch files (CRITICAL)

Affected versions: < 6.0.7; >= 7.0.0 < 7.1.0

Patched version: 6.0.7

From: npm-publish/pkdiff/package-lock.json → npm/pkdiff@2.0.1 → npm/cross-spawn@6.0.6

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/cross-spawn@6.0.6. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

rekmarks-consensys-1 and others added 23 commits December 1, 2026 09:09
`npm i -g pkdiff@2.0.1` pins pkdiff but not its dependencies, and ran
their install scripts in the job, where the token or OIDC may be
available. None of its current dependencies has an install script, and
pkdiff 2.0.1 installed with --ignore-scripts still writes a diff report
against a package's latest version (checked locally), so nothing is
lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
publish.sh packs only when `dry-run` is exactly `true`, so a typo such as
`True` or `yes` published. A new first step rejects any value other than
`true`, `false` or empty before anything else runs, and publish.sh
checks the same. The empty value keeps its documented meaning.

The rejected job runs the action with `dry-run: yes` and checks that it
fails without packing and before the sanitize step writes its Yarn
configuration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GH_TOKEN was in the Publish step's environment only so that main.sh could
log the pull request that merged the commit. Every process in that step,
Yarn included, inherited the job's GITHUB_TOKEN. The lookup now runs in
its own step before Publish, which no longer gets GH_TOKEN. The URL is
printed only if it looks like one, since it lands on its own log line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With RUNNER_DEBUG=1, publish.sh ran under `set -x`, which printed the npm
token in `YARN_NPM_AUTH_TOKEN=...` and in each test of it. GitHub masks
the token only if it came from a secret, not from another step's output.
main.sh, publish.sh and needs-publish.sh, whose environment holds the
token, no longer turn on xtrace; sanitize.sh and report.sh, which don't
see it, still do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… commands

The runner reads any output line starting with `::` as a workflow
command, and package names, versions, workspace locations, a
`publishConfig.registry` and the names of packed files all come from the
repository:

- needs-publish.sh, which every name and version passes through before
  anything else prints or uses them, now fails unless the name follows
  npm's rules (upper case allowed, as in older names) and the version is
  a semantic version, and prints a rejected value with %q, on one line.
- main.sh and sanitize.sh fail on a workspace location with a control
  character instead of splitting it across lines.
- sanitize.sh prints a rejected registry as JSON, on one line.
- publish.sh prints Yarn's output while packing or publishing, which
  lists file names, between ::stop-commands::<random> and ::<random>::.

main.sh also passed names and versions to `xargs -n 2` split on
whitespace, with quotes interpreted, so a name with a space or a quote
was mis-split or failed with an xargs error; they now go NUL-separated
to `xargs -0`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm's rules allow a package name to start with `-`, and `npm view` and
`pkdiff` would read such a name as an option. Both now get their options
first and the package spec after `--` (checked with npm 11 and pkdiff
2.0.1). The npm shim in publish-modes.sh fails unless the spec follows
`--`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a self-hosted runner that is reused, ~/.yarnrc.yml stays deleted, the
generated .yarnrc-<random>.yml stays in the checkout's parent directory,
and the checkout's manifests keep their lifecycle scripts removed. The
README didn't say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`npm view` decides whether a package is new (token path) or already
published (OIDC path). npm_config_registry, or a scope's registry such as
npm_config_@scope:registry, set by the caller's job or through $GITHUB_ENV
redirected that lookup to another registry. Pass --registry and, for a
scoped name, --@<scope>:registry on the command line, which take
precedence over environment variables and .npmrc files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm_config_registry set by the caller's job or through $GITHUB_ENV
redirected `npm i -g pkdiff@2.0.1`, and pkdiff's own `npm pack` of
<name>@latest (it reads `npm config get registry` when not given
--registry). Pass --registry https://registry.npmjs.org to both. A
scope's registry still applies to pkdiff's download, and pkdiff has no
option for it; the README says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is deliberate: a `v`-prefixed version fails rather than being
normalised. Say so plainly so callers aren't surprised.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Strict semver is a deliberate choice, now stated in the README; pin it
with a test so that it isn't loosened by accident.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… set

The sanitize test's control step failed: the runner does not carry
NODE_OPTIONS from $GITHUB_ENV into later steps, so the canary never ran.
GitHub's workflow-commands docs say "Due to security restrictions,
GITHUB_ENV cannot be used to set the NODE_OPTIONS environment variable",
and actions/runner's SetEnvFileCommand drops it (_setEnvBlockList in
src/Runner.Worker/FileCommandManager.cs, at 35e45850b519). NODE_OPTIONS
is the only entry, so BASH_ENV and ENV are still accepted and the
action keeps clearing them.

NODE_OPTIONS can then come only from the caller's own workflow, so the
action no longer clears it. The test drops its NODE_OPTIONS canary and
the README no longer says it can arrive through $GITHUB_ENV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the runner, yarn config get prints booleans with colour codes, so enableScripts compared as a coloured 'false' and the check failed. --json output, read with jq, has no colour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`npm i -g pkdiff@2.0.1` pinned pkdiff but resolved its 49 transitive
dependencies by version range at install time. pkdiff/package-lock.json
now pins all of them, with integrity hashes, to registry.npmjs.org
tarballs, and install-pkdiff.sh installs them with `npm ci
--ignore-scripts --registry https://registry.npmjs.org` into a new
directory under $RUNNER_TEMP. --registry still matters: `npm ci`
downloads the lockfile's registry.npmjs.org URLs from the configured
registry. report.sh runs that install's pkdiff by path.

The lockfile nests pkdiff's dependencies under it (pkdiff/.npmrc sets
install-strategy=shallow), as a global install does: pkdiff reads
diff2html's files from its own node_modules, and fails with a hoisted
layout. A new workflow job checks that a dry run writes a report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`npm ci` doesn't always keep the lockfile's layout: with
npm_config_install_strategy=linked, from $GITHUB_ENV or the user's npmrc,
it installs into node_modules/.store, and pkdiff then fails to find its
nested diff2html. The command-line flag overrides the environment. The
report test job now sets the linked strategy in $GITHUB_ENV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
report.sh's `|| true`, meant for a package not yet on npm, also hid a
pkdiff that was never installed (exit 127) or crashed. It now fails if
pkdiff isn't executable, and install-pkdiff.sh fails if `npm ci` didn't
nest diff2html under pkdiff: a wrong layout, or an install that did
nothing because npm_config_dry_run=true was set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…heck fails

The check printed the whole lockfile, about 550 lines, on failure. It now
prints the keys of the packages without a registry.npmjs.org URL or a
sha512 integrity hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`ls -A` sorts by the locale's collation, which may differ under some
glibc locales from the order the expected command assumes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pkdiff is installed from a version 3 lockfile, which npm 6 can't read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pkdiff 2.0.1 pins minimist 0.2.1, which has a prototype-pollution advisory
(GHSA-xvch-5gv4-984h) fixed in 0.2.4. The override is keyed on
minimist@0.2.1: a bare "minimist" key would, on a fresh lockfile, also
force handlebars' minimist from 1.2.8 down to 0.2.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Corepack runs the Yarn that the nearest package.json names, so a workspace
with `"packageManager": "yarn@1.22.22"` got Yarn 1 in its directory. Yarn 1
has no `npm` command and runs `yarn npm publish` as the workspace's own
`npm` script, with the token or OIDC in its environment, and the step then
reported success.

publish.sh now packs and publishes with `corepack yarn@<version>`, the
root's version that main.sh checked, and sanitize.sh rejects workspaces
other than the root that set `packageManager` or
`devEngines.packageManager`.
Yarn matches environment variable names case-insensitively, but
environment.sh unset only upper-case YARN_* names. With
`yarn_rc_filename=.yarnrc.yml` set through $GITHUB_ENV, Yarn loaded the
repository's .yarnrc.yml and its plugins, which could read the token and
OIDC, and `yarn_npm_publish_registry` or `Yarn_Npm_Registry_Server` could
redirect the publish.

environment.sh now unsets every name matching ^yarn_ in any case, except
the exact upper-case names the action sets or needs.
--registry pins only the registry's URL. npm view still went through
HTTPS_PROXY, https_proxy or npm_config_https_proxy, and npm reports a
proxy's 404 as the registry's: a proxy answering CONNECT with 404 made
left-pad@1.3.0 look unpublished. That sends an existing package down the
token path, published without staging or provenance.

npm-view.sh now runs npm with nothing from the environment but PATH, and
with empty user and global configuration files. A runner that can reach
the registry only through a proxy fails the lookup, which fails the action.
@rekmarks-consensys-1

Copy link
Copy Markdown
Contributor Author

@joshuafernandes I cherry-picked your commits from #37 onto this branch. I also just rebased it on the new main. We should be good to go.

@joshuafernandes joshuafernandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

auto-merge was automatically disabled December 1, 2026 21:05

Merge commits are not allowed on this repository

@rekmarks-consensys-1
rekmarks-consensys-1 merged commit 06b4ea8 into main Dec 2, 2026
125 checks passed
@rekmarks-consensys-1
rekmarks-consensys-1 deleted the ocap/npm-publish branch December 2, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants