Skip to content

chore: Add a workflow for publishing the blocks package. - #33

Merged
Artmann merged 4 commits into
mainfrom
chris/publish-the-blocks-package
Oct 8, 2025
Merged

Artmann merged 4 commits into
mainfrom
chris/publish-the-blocks-package

Conversation

@Artmann

@Artmann Artmann commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

It will publish the package when a release is created.

Summary by CodeRabbit

  • Chores

    • Added an automated package publishing workflow that runs on release tags, validates package/version alignment, builds the targeted package, and publishes to GitHub Packages to streamline per-package releases.
  • Documentation

    • Added a step-by-step "Publishing Packages" guide describing the release/tag and publish workflow.
    • Expanded maintainer guidelines: no rebasing/force-pushing others’ branches; resolve conflicts by merging main; improved PR hygiene, authorship preservation, issue labeling, and communication practices.

@Artmann Artmann changed the title feat: Add a workflow for publishing the blocks package. chore: Add a workflow for publishing the blocks package. Oct 8, 2025
@coderabbitai

coderabbitai Bot commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

📝 Walkthrough

Adds a GitHub Actions workflow "Publish Package" that runs on published releases whose tag matches the pattern @deepnote/<package>@<version>. The job extracts package name and tag version, sets up Node.js and pnpm (with caching), installs dependencies, validates package.json version against the tag, builds the targeted package, configures the GitHub Packages registry using GITHUB_TOKEN, and publishes the scoped package. Also updates CONTRIBUTING.md with a "Publishing Packages" section and expanded maintainer/PR guidelines.

Sequence Diagram(s)

mermaid
sequenceDiagram
participant Release as GitHub Release
participant Actions as GitHub Actions (Publish Package)
participant Repo as Repository (checkout)
participant Node as Node/pnpm
participant Registry as GitHub Packages
note right of Actions #EFEFEF: Trigger on release with tag pattern
Release->>Actions: release published (tag @deepnote/pkg@vX.Y.Z)
Actions->>Repo: checkout repository
Actions->>Actions: extract package_name & tag_version
Actions->>Node: setup Node (.nvmrc) & pnpm (cache)
Actions->>Node: pnpm install --frozen-lockfile
Actions->>Actions: validate packages//package.json version == tag_version
Actions->>Node: pnpm --filter @deepnote/ build
Actions->>Registry: configure npm registry + auth (GITHUB_TOKEN)
Actions->>Registry: npm publish --access public (no-git-checks)
note left of Registry #E8F6E8: Package published or job fails on mismatch/build error

Possibly related PRs

Suggested reviewers

  • andyjakubowski
  • jamesbhobbs

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly describes the primary change of adding a workflow for publishing the blocks package and aligns with the main modification introduced in this pull request.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8987388 and fb65fd0.

📒 Files selected for processing (2)
  • .github/workflows/publish.yml (1 hunks)
  • CONTRIBUTING.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-30T13:34:45.847Z
Learnt from: jamesbhobbs
PR: deepnote/deepnote#1
File: .husky/post-checkout:1-1
Timestamp: 2025-09-30T13:34:45.847Z
Learning: In the deepnote/deepnote repository, the .husky/post-checkout hook should remain minimal (just `pnpm install`) without explicit flags like `--frozen-lockfile` or guards. Explicit flags should only be used where needed, such as in CI workflows.

Applied to files:

  • CONTRIBUTING.md

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

@codecov

codecov Bot commented Oct 8, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.59%. Comparing base (2f525d9) to head (fb65fd0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage   93.59%   93.59%           
=======================================
  Files          19       19           
  Lines         593      593           
  Branches      179      120   -59     
=======================================
  Hits          555      555           
  Misses         38       38           

☔ 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.

@Artmann
Artmann force-pushed the chris/publish-the-blocks-package branch from a8cdd4a to 8f39708 Compare October 8, 2025 10:10

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2f525d9 and 8f39708.

📒 Files selected for processing (2)
  • .github/workflows/publish.yml (1 hunks)
  • CONTRIBUTING.md (1 hunks)

Comment thread .github/workflows/publish.yml Resolved
Comment thread CONTRIBUTING.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8f39708 and 07bb4da.

📒 Files selected for processing (2)
  • .github/workflows/publish.yml (1 hunks)
  • CONTRIBUTING.md (1 hunks)

Comment thread CONTRIBUTING.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 07bb4da and 199cdd1.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-30T13:34:45.847Z
Learnt from: jamesbhobbs
PR: deepnote/deepnote#1
File: .husky/post-checkout:1-1
Timestamp: 2025-09-30T13:34:45.847Z
Learning: In the deepnote/deepnote repository, the .husky/post-checkout hook should remain minimal (just `pnpm install`) without explicit flags like `--frozen-lockfile` or guards. Explicit flags should only be used where needed, such as in CI workflows.

Applied to files:

  • CONTRIBUTING.md

Comment thread CONTRIBUTING.md Resolved
It will publish the package when a release is created.
@Artmann
Artmann force-pushed the chris/publish-the-blocks-package branch from 199cdd1 to 8e0301e Compare October 8, 2025 10:48
coderabbitai[bot]
coderabbitai Bot previously approved these changes Oct 8, 2025
@Artmann
Artmann marked this pull request as ready for review October 8, 2025 10:49
saltenasl
saltenasl previously approved these changes Oct 8, 2025

@saltenasl saltenasl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One suggestion for future-proofing this.

Comment thread CONTRIBUTING.md Outdated

4. **Create a GitHub Release** (after the PR is merged):
- Go to [Releases](https://github.com/deepnote/deepnote/releases/new)
- Create a new tag (e.g., `v1.2.0`) in the release form

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

non-blocking, but we'll need to improve this to be package-scoped release versions e.g. @deepnote/blocks@1.2.3 once we have more packages that we publish in this monorepo.

I'm not sure if we're planning to have more than @deepnote/blocks package being published from this repo. If yes, I'd prefer we define the standard now and also update the publish workflow only to react to publishes of the package in question.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We will probably want to include our CLI package (deepnote-convert or whatever we call it) in this monorepo, and have that published separately.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@saltenasl I've updated the workflow to support multiple packages

@Artmann
Artmann dismissed stale reviews from saltenasl and coderabbitai[bot] via cc91a54 October 8, 2025 15:07

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 199cdd1 and cc91a54.

📒 Files selected for processing (2)
  • .github/workflows/publish.yml (1 hunks)
  • CONTRIBUTING.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-30T13:34:45.847Z
Learnt from: jamesbhobbs
PR: deepnote/deepnote#1
File: .husky/post-checkout:1-1
Timestamp: 2025-09-30T13:34:45.847Z
Learning: In the deepnote/deepnote repository, the .husky/post-checkout hook should remain minimal (just `pnpm install`) without explicit flags like `--frozen-lockfile` or guards. Explicit flags should only be used where needed, such as in CI workflows.

Applied to files:

  • CONTRIBUTING.md

Comment thread .github/workflows/publish.yml Resolved
Comment thread CONTRIBUTING.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 4

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cc91a54 and 8987388.

📒 Files selected for processing (2)
  • .github/workflows/publish.yml (1 hunks)
  • CONTRIBUTING.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-30T13:34:45.847Z
Learnt from: jamesbhobbs
PR: deepnote/deepnote#1
File: .husky/post-checkout:1-1
Timestamp: 2025-09-30T13:34:45.847Z
Learning: In the deepnote/deepnote repository, the .husky/post-checkout hook should remain minimal (just `pnpm install`) without explicit flags like `--frozen-lockfile` or guards. Explicit flags should only be used where needed, such as in CI workflows.

Applied to files:

  • CONTRIBUTING.md
🔇 Additional comments (1)
CONTRIBUTING.md (1)

93-97: Good fix: return to repo root after bump.

The extra cd back to repo root prevents path issues in subsequent git commands.

Comment thread .github/workflows/publish.yml Resolved
Comment thread .github/workflows/publish.yml Resolved
Comment thread .github/workflows/publish.yml Resolved
Comment thread CONTRIBUTING.md Resolved

@saltenasl saltenasl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks, LGTM! We should consider auto releasing after the version bump PR is merged in the future to polish the DX even further

@Artmann
Artmann merged commit 322e3a3 into main Oct 8, 2025
@Artmann
Artmann deleted the chris/publish-the-blocks-package branch October 8, 2025 15:45
@coderabbitai coderabbitai Bot mentioned this pull request Oct 31, 2025
danielsimonjr added a commit to danielsimonjr/deepnote that referenced this pull request Jul 1, 2026
)

esbuild 0.28.0 was in the advisory range (>=0.27.3 <0.28.1); both
vite 8.0.16 and tsx 4.22.4 already allow 0.28.1, so pnpm update -r
esbuild resolves it (also 0.25.10->0.25.12, out of range). No manifest
change. esbuild no longer flagged by pnpm audit.


Claude-Session: https://claude.ai/code/session_01HWrTgpQ6CZV7tbVCNib9Pi

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.

3 participants