NoamGaash/playwright-advanced-har

I'm not sure why Trusted Publisher publishing doesn't work

Open

#133 opened on Mar 4, 2026

 (5 comments) (0 reactions) (0 assignees)TypeScript (2 forks)auto 404
Trusted Publisherhelp wantednpmjs

Repository metrics

Stars
 (33 stars)
PR merge metrics
 (PR metrics pending)

Description

I tried to set a Trusted Publisher to npmjs Setting used:

  Publisher*
  GitHub Actions
  Organization or user*
  NoamGaash
  Repository*
  playwright-advanced-har
  Workflow filename*
  Filename only (e.g., publish.yml). Must exist in `.github/workflows/` in your repository.
  release-please.yml
  Environment name
  The name of the [GitHub Actions environment](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-deployments/managing-environments-for-deployment) used for publishing. This is encouraged for projects with maintainers who should not have npm publishing access.
  production

Under Publishing access:

( x ) Require two-factor authentication or a granular access token with bypass 2fa enabled
( ) Require two-factor authentication and disallow tokens (recommended)

and in the last publish we got:

Run npm publish --provenance --access public

> playwright-advanced-har@1.4.2 prepublishOnly
> npm test && npm run lint


> playwright-advanced-har@1.4.2 test
> playwright test


Running 36 tests using 1 worker
(node:3561) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
····································
  36 passed (10.0s)

> playwright-advanced-har@1.4.2 lint
> eslint .


> playwright-advanced-har@1.4.2 prepare
> npm run build


> playwright-advanced-har@1.4.2 build
> tsc

npm notice
npm notice 📦  playwright-advanced-har@1.4.2
npm notice Tarball Contents
npm notice 1.1kB LICENCE.txt
npm notice 3.6kB README.md
npm notice 807B lib/index.d.ts
npm notice 3.3kB lib/index.js
npm notice 2.0kB lib/index.js.map
npm notice 211B lib/utils/matchers/comparators.d.ts
npm notice 671B lib/utils/matchers/comparators.js
npm notice 806B lib/utils/matchers/comparators.js.map
npm notice 519B lib/utils/matchers/customMatcher.d.ts
npm notice 1.5kB lib/utils/matchers/customMatcher.js
npm notice 1.3kB lib/utils/matchers/customMatcher.js.map
npm notice 82B lib/utils/matchers/defaultMatcher.d.ts
npm notice 911B lib/utils/matchers/defaultMatcher.js
npm notice 817B lib/utils/matchers/defaultMatcher.js.map
npm notice 765B lib/utils/serveFromHar.d.ts
npm notice 3.4kB lib/utils/serveFromHar.js
npm notice 3.1kB lib/utils/serveFromHar.js.map
npm notice 2.7kB lib/utils/types.d.ts
npm notice 2.5kB lib/utils/types.js
npm notice 2.2kB lib/utils/types.js.map
npm notice 1.4kB package.json
npm notice Tarball Details
npm notice name: playwright-advanced-har
npm notice version: 1.4.2
npm notice filename: playwright-advanced-har-1.4.2.tgz
npm notice package size: 10.1 kB
npm notice unpacked size: 33.7 kB
npm notice shasum: 65218296ecec2a48e5396e3de0c394732d77c745
npm notice integrity: sha512-xwdSThSrpI96T[...]Uj9YhjGid4K2w==
npm notice total files: 21
npm notice
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm notice publish Signed provenance statement with source and build information from GitHub Actions
npm notice publish Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=1017946238
npm notice Access token expired or revoked. Please try logging in again.
npm error code E404
npm error 404 Not Found - PUT https://registry.npmjs.org/playwright-advanced-har - Not found
npm error 404
npm error 404  'playwright-advanced-har@1.4.2' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-03-03T13_36_53_140Z-debug-0.log
Error: Process completed with exit code 1.

Contributor guide