Migrate npm publishing to trusted publishers with yarn 4 and Node 22#109
Migrate npm publishing to trusted publishers with yarn 4 and Node 22#109
Conversation
- Update all actions/setup-node to v6 - Add npm 11.5.1 installation for trusted publishers support - Add workflow permissions (id-token: write, contents: read, packages: write) - Remove NPM_TOKEN authentication from npm publishing (use trusted publishing) - Set NODE_AUTH_TOKEN="" for npm publish - Bump typescript package version from 1.4.2 to 1.4.3 - Keep NPM_TOKEN for GitHub packages publishing Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
- Add registry-url to setup-node for npm trusted publishing - Remove unnecessary NODE_AUTH_TOKEN environment variable Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
|
@copilot run |
Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
Ran pre-commit hooks successfully. The doctoc hook updated the table of contents in python/README.md (commit c081f4d). Note: The eslint hook failed due to a pre-existing Node.js v20/PnP loader compatibility issue ( |
|
@copilot Fix the error in https://github.com/transcend-io/examples/actions/runs/20355500697/job/58492261196?pr=109 I think bumping a version in the github workflow should work for the pre-commit action |
Fixes GitHub Actions cache service errors in the run-pre-commits job Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
Fixed by upgrading pre-commit action from v2.0.2 to v4.0.0 (commit ec8601d). This should resolve the GitHub Actions cache service errors. |
|
@copilot I see Current runner version: '2.330.0' Use v3.0.0 |
v4.0.0 doesn't exist, using v3.0.0 instead Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
|
@copilot run |
- Run yarn set version 4.12.0 - Update all CI jobs to use Node.js 22.x instead of 14.x - Add --provenance flag to npm publish for attestation - GitHub packages publish remains without provenance flag Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.