Skip to content

Create npm-publish-github-packages.yml#13

Open
Huynhthuongg wants to merge 3 commits into
mainfrom
Huynhthuongg-patch-3
Open

Create npm-publish-github-packages.yml#13
Huynhthuongg wants to merge 3 commits into
mainfrom
Huynhthuongg-patch-3

Conversation

@Huynhthuongg

@Huynhthuongg Huynhthuongg commented May 3, 2026

Copy link
Copy Markdown
Member

Open in Devin Review

Summary by cubic

Add a GitHub Actions workflow to test (if present) and publish the Node package to GitHub Packages when a Release is created. Publishes only after the build job succeeds on Node 20.

  • New Features
    • Adds .github/workflows/npm-publish-github-packages.yml triggered on release: created.
    • Build job: Node 20, runs npm ci and npm test --if-present.
    • Publish job: depends on build; sets registry-url to https://npm.pkg.github.com/; runs npm ci and npm publish using secrets.GITHUB_TOKEN with packages: write and contents: read.

Written for commit e3704cd. Summary will update on new commits. Review in cubic

Signed-off-by: Huỳnh Thương <admin@huynhthuong.online>
@vercel

vercel Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
claude-open-ai Ready Ready Preview, Comment May 15, 2026 7:44pm

@coderabbitai

coderabbitai Bot commented May 3, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Một workflow GitHub Actions mới được thêm vào để tự động hóa quy trình chạy test và công bố gói npm lên GitHub Packages. Khi release được tạo, workflow chạy job build để kiểm tra mã, sau đó job publish-gpr phụ thuộc vào nó publish gói với xác thực an toàn.

Changes

Quy Trình Tự Động Công Bố Gói NPM

Layer / File(s) Summary
Setup NPM Publishing Workflow
.github/workflows/npm-publish-github-packages.yml
Workflow được kích hoạt bởi sự kiện release.created; job build (chạy trên ubuntu-latest) checkout mã, setup Node.js v20, cài dependencies qua npm ci, và chạy npm test --if-present. Job publish-gpr phụ thuộc vào build, setup Node.js v20 với registry-url trỏ tới GitHub Packages Registry, cài dependencies, và thực hiện npm publish với xác thực qua secrets.GITHUB_TOKEN trong biến NODE_AUTH_TOKEN. Cấu hình quyền tối thiểu với contents: readpackages: write.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Một workflow mới vừa ra đời,
Tự động chạy test trong sáng sớm,
NPM packages bay lên GitHub,
An toàn với token bí mật,
Phát hành giờ đã trở nên dễ dàng! 📦✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title directly and clearly describes the main change: creating the npm-publish-github-packages.yml workflow file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description clearly explains the addition of a GitHub Actions workflow for testing and publishing Node packages to GitHub Packages when a release is created.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch Huynhthuongg-patch-3
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch Huynhthuongg-patch-3
  • 🛠️ Aethon

Warning

Review ran into problems

🔥 Problems

Linked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped Aethon/backend-api.

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

devin-ai-integration[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

cubic-dev-ai[bot]

This comment was marked as resolved.

coderabbitai[bot]
coderabbitai Bot previously approved these changes May 15, 2026
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Signed-off-by: Huỳnh Thương <admin@huynhthuong.online>
@kilo-code-bot

kilo-code-bot Bot commented May 15, 2026

Copy link
Copy Markdown

Kilo Code Review could not run — your account is out of credits.

Add credits or switch to a free model to enable reviews on this change.

coderabbitai[bot]

This comment was marked as resolved.

@Huynhthuongg Huynhthuongg enabled auto-merge (squash) May 15, 2026 19:45
@Huynhthuongg Huynhthuongg disabled auto-merge May 15, 2026 19:46
@Huynhthuongg Huynhthuongg enabled auto-merge (squash) May 15, 2026 19:46
@Huynhthuongg Huynhthuongg disabled auto-merge May 15, 2026 19:46
@Huynhthuongg Huynhthuongg enabled auto-merge (squash) May 15, 2026 19:48
This was linked to issues May 18, 2026
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toàn quyền điều khiển / Agents/code

1 participant