-
Notifications
You must be signed in to change notification settings - Fork 339
Use NPM trusted publishing #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a5fe0d1 to
4cc96f7
Compare
e64c4a9 to
401bf68
Compare
e624d1a to
b3f1939
Compare
|
|
||
| for (const pkg of packages) { | ||
| await exec("npm", ["publish", "--access", "public", pkg]); | ||
| await exec("corepack", ["npm", "--version"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug version check runs redundantly inside publish loop
Low Severity
A debugging statement await exec("corepack", ["npm", "--version"]) was added inside the for loop that iterates over all packages. This causes the npm version to be printed once for every package being published, which is unnecessary and appears to be leftover debug code. If the version check was intentional for verification, it would only need to run once before the loop, not for each package iteration.
a98dc9b to
f2c7400
Compare
NPM classic tokens are no more, trusted publishing is the future.
Prevent failures like https://github.com/amacneil/dbmate/actions/runs/20837451898/job/59865223681
Note
Adopts NPM OIDC trusted publishing and tidies GitHub workflows and package metadata.
npmjob: grantsid-tokenpermissions, enablescorepack, removes registry/token usage;typescript/publish.tsunsetsNODE_AUTH_TOKENand publishes viacorepack npm publish --provenancedependabot.yml; minor naming tweaks in post-release workflow.prettierrc.json; setspackageManagerintypescript/package.jsondbmateand template packages (repository format, bin mapping, homepage/author)pkg/dbmate/version.goto2.29.1Written by Cursor Bugbot for commit 00b792f. This will update automatically on new commits. Configure here.