If you (like me) were attempting to npm publish via GitHub Actions using `npm@latest` (currently v11.12.0) and saw an error message involving `--prefer-online` and `--prefer-offline`, reverting to npm@11.11.1 fixes the issue.

Related: https://github.com/npm/cli/issues/9133