Create npm-publish-github-packages.yml#3
Conversation
|
|
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Review Summary by QodoAdd npm package publishing workflow to GitHub Actions
WalkthroughsDescription• Add GitHub Actions workflow for automated npm package publishing • Trigger on release creation with build and test steps • Publish to GitHub Packages registry with proper permissions Diagramflowchart LR
release["Release Created"] --> build["Build Job<br/>Node 20<br/>npm ci & test"]
build --> publish["Publish Job<br/>npm publish to<br/>GitHub Packages"]
publish --> registry["GitHub Packages<br/>Registry"]
File Changes1. .github/workflows/npm-publish-github-packages.yml
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughA new GitHub Actions workflow published npm packages to GitHub Packages on release creation. The workflow triggers on release events, runs build and test verification on Node.js 20, and conditionally publishes to the GitHub Packages registry using authenticated credentials from ChangesGitHub Packages Publishing Workflow
Sequence DiagramsequenceDiagram
participant Developer
participant GitHub as GitHub Release Event
participant BuildJob as Build Job
participant PublishJob as Publish Job
participant Registry as GitHub Packages Registry
Developer->>GitHub: Create release
GitHub->>BuildJob: Trigger workflow
BuildJob->>BuildJob: npm ci (install dependencies)
BuildJob->>BuildJob: npm test (run tests)
BuildJob-->>PublishJob: Build complete
PublishJob->>PublishJob: Configure npm registry
PublishJob->>Registry: npm publish with NODE_AUTH_TOKEN
Registry-->>PublishJob: Package published
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@deargvp1
Summary by cubic
Add a GitHub Actions workflow to build, test, and publish the Node package to GitHub Packages when a release is created. This automates publishing with Node 20 and removes manual steps.
release(type:created) and publishes to https://npm.pkg.github.com/.npm ciandnpm teston Ubuntu.npm ciandnpm publishwithNODE_AUTH_TOKENfromsecrets.GITHUB_TOKEN.Written for commit a3e3577. Summary will update on new commits. Review in cubic