Skip to content

chore(ci): publish package#624

Open
avivkeller wants to merge 2 commits intomainfrom
publish
Open

chore(ci): publish package#624
avivkeller wants to merge 2 commits intomainfrom
publish

Conversation

@avivkeller
Copy link
Member

@avivkeller avivkeller commented Mar 1, 2026

Fixes #568 by publishing the library as @nodejs/doc-kit1

Blocked by: nodejs/admin#1046

Footnotes

  1. IMO, we should use @nodejs over @node-core, since this package can be used outside of node core in the long-run.

Copilot AI review requested due to automatic review settings March 1, 2026 01:46
@avivkeller avivkeller requested a review from a team as a code owner March 1, 2026 01:46
@vercel
Copy link

vercel bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
api-docs-tooling Ready Ready Preview Mar 1, 2026 1:52am

Request Review

@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@64655f3). Learn more about missing BASE report.
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #624   +/-   ##
=======================================
  Coverage        ?   72.47%           
=======================================
  Files           ?      144           
  Lines           ?    12604           
  Branches        ?      872           
=======================================
  Hits            ?     9135           
  Misses          ?     3464           
  Partials        ?        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link

github-actions bot commented Mar 1, 2026

orama-db Generator

File Base Head Diff
orama-db.json 8.04 MB 8.04 MB +1.00 B (+0.00%)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing metadata and CI automation needed to publish this repository’s npm package (@nodejs/doc-kit) when the version is bumped on main, aligning with the goal of automated releases.

Changes:

  • Add a version field to package.json.
  • Update npm-shrinkwrap.json to include the package version metadata.
  • Introduce a new GitHub Actions workflow to publish to npm and send a Slack notification.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 5 comments.

File Description
package.json Adds an explicit package version required for npm publishing.
npm-shrinkwrap.json Records the package version in the shrinkwrap metadata.
.github/workflows/publish.yml Adds an automated npm publish workflow gated by a version change check.
Files not reviewed (1)
  • npm-shrinkwrap.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT !

{
"name": "@nodejs/doc-kit",
"type": "module",
"version": "1.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"version": "1.0.0",
"version": "0.1.0",

IMO we should stay in v0 and before v1 decide which parser/generator will be include in "doc-kit core" and in external package.

:bust_in_silhouette: *Published by*: ${{ github.triggering_actor }}
:octocat: *Commit*: <https://github.com/${{ github.repository }}/commit/${{ env.COMMIT_SHA }}|${{ env.COMMIT_SHA }}>
SLACK_USERNAME: nodejs-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it already setup ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate npm publication as @node-core/doc-kit with version bump workflow

3 participants