npm checkmark
You can get a
Using trusted publishing
In July 2025, npm trusted publishing became generally available, and is now the preferred way to publish a verified package to npm.
Docshttps://docs.npmjs.com/trusted-publishers
Using package provenance
The preferred way to publish a verified package to npm now is to use trusted publishing.
In
package.json, make surerepository.urlis set to your repository’s URL."repository": { "url": "git+https://github.com/dtinth/-.-" }Update your GitHub Actions workflow job.
- Make sure it has the
id-token: writepermission. - Set environment variable
NPM_CONFIG_PROVENANCE=true.
jobs: release: name: Release runs-on: ubuntu-latest permissions: id-token: write contents: write packages: write pull-requests: write issues: read env: NPM_CONFIG_PROVENANCE: true- Make sure it has the
