Skip to content

use changeset publish instead of manually publishing via pnpm #6490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2025

Conversation

bdbch
Copy link
Member

@bdbch bdbch commented Jun 21, 2025

Description

This PR replaces the publish script so it uses changeset publish. This only publishes packages that actually were version bumped (or were not published yet) - this helps us to only publish packages that need to be re-published & avoid CI failures.

Important Note: changeset publish will always use the pre tag defined for changesets so after this PR is merged, changes that were previously deployed on @next will now be deployed as @beta (which objectively will be better BUT will require Tiptap users to adjust their dependencies).

AI Summary

Changes Overview

This pull request updates the publishing workflow and the publish script in package.json to improve consistency and streamline the release process. The most important changes involve replacing custom logic for determining the publish tag with simpler and more standardized commands.

Workflow updates:

  • .github/workflows/publish.yml: Simplified the publish command in the changesets/action step by removing conditional logic for determining the tag (next or latest). The command now uses pnpm run publish directly.

Script updates:

  • package.json: Updated the publish script to use pnpm changeset publish instead of pnpm publish -r --no-git-checks, aligning it with the changesets workflow.

Checklist

  • I have created a changeset for this PR if necessary.
  • My changes do not break the library.
  • I have added tests where applicable.
  • I have followed the project guidelines.
  • I have fixed any lint issues.

Copy link

changeset-bot bot commented Jun 21, 2025

⚠️ No Changeset found

Latest commit: 65b5b9f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

netlify bot commented Jun 21, 2025

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 65b5b9f
🔍 Latest deploy log https://app.netlify.com/projects/tiptap-embed/deploys/6856d56aba54f30008687bfe
😎 Deploy Preview https://deploy-preview-6490--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bdbch bdbch requested a review from Copilot June 21, 2025 15:55
Copy link
Contributor

@Copilot 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

This PR updates the publishing process to use changeset publish instead of the manual pnpm publish command, ensuring that only packages with version bumps are published and streamlining the release process.

  • Updated the publish script in package.json to use "pnpm changeset publish".
  • Simplified the publishing step in .github/workflows/publish.yml by removing the conditional tag logic.

Reviewed Changes

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

File Description
package.json Updated the publish script to build and then use changeset publish.
.github/workflows/publish.yml Removed conditional publish tag logic to simplify the workflow command.
Comments suppressed due to low confidence (2)

package.json:26

  • Ensure that the new publish behavior using 'changeset publish' and its pre tag configuration is documented clearly, so users are aware of the transition and required dependency adjustments.
    "publish": "pnpm run build && pnpm changeset publish",

.github/workflows/publish.yml:71

  • Consider including a clarification in the workflow documentation about the removal of the conditional tag logic to help users understand the change in release process.
          publish: pnpm run publish

Copy link

pkg-pr-new bot commented Jun 21, 2025

Open in StackBlitz

@tiptap/core

npm i https://pkg.pr.new/@tiptap/core@6490

@tiptap/extension-blockquote

npm i https://pkg.pr.new/@tiptap/extension-blockquote@6490

@tiptap/extension-bubble-menu

npm i https://pkg.pr.new/@tiptap/extension-bubble-menu@6490

@tiptap/extension-bullet-list

npm i https://pkg.pr.new/@tiptap/extension-bullet-list@6490

@tiptap/extension-bold

npm i https://pkg.pr.new/@tiptap/extension-bold@6490

@tiptap/extension-code

npm i https://pkg.pr.new/@tiptap/extension-code@6490

@tiptap/extension-code-block

npm i https://pkg.pr.new/@tiptap/extension-code-block@6490

@tiptap/extension-code-block-lowlight

npm i https://pkg.pr.new/@tiptap/extension-code-block-lowlight@6490

@tiptap/extension-collaboration

npm i https://pkg.pr.new/@tiptap/extension-collaboration@6490

@tiptap/extension-collaboration-caret

npm i https://pkg.pr.new/@tiptap/extension-collaboration-caret@6490

@tiptap/extension-details

npm i https://pkg.pr.new/@tiptap/extension-details@6490

@tiptap/extension-color

npm i https://pkg.pr.new/@tiptap/extension-color@6490

@tiptap/extension-document

npm i https://pkg.pr.new/@tiptap/extension-document@6490

@tiptap/extension-drag-handle

npm i https://pkg.pr.new/@tiptap/extension-drag-handle@6490

@tiptap/extension-drag-handle-react

npm i https://pkg.pr.new/@tiptap/extension-drag-handle-react@6490

@tiptap/extension-drag-handle-vue-2

npm i https://pkg.pr.new/@tiptap/extension-drag-handle-vue-2@6490

@tiptap/extension-drag-handle-vue-3

npm i https://pkg.pr.new/@tiptap/extension-drag-handle-vue-3@6490

@tiptap/extension-emoji

npm i https://pkg.pr.new/@tiptap/extension-emoji@6490

@tiptap/extension-file-handler

npm i https://pkg.pr.new/@tiptap/extension-file-handler@6490

@tiptap/extension-floating-menu

npm i https://pkg.pr.new/@tiptap/extension-floating-menu@6490

@tiptap/extension-font-family

npm i https://pkg.pr.new/@tiptap/extension-font-family@6490

@tiptap/extension-hard-break

npm i https://pkg.pr.new/@tiptap/extension-hard-break@6490

@tiptap/extension-highlight

npm i https://pkg.pr.new/@tiptap/extension-highlight@6490

@tiptap/extension-heading

npm i https://pkg.pr.new/@tiptap/extension-heading@6490

@tiptap/extension-horizontal-rule

npm i https://pkg.pr.new/@tiptap/extension-horizontal-rule@6490

@tiptap/extension-image

npm i https://pkg.pr.new/@tiptap/extension-image@6490

@tiptap/extension-invisible-characters

npm i https://pkg.pr.new/@tiptap/extension-invisible-characters@6490

@tiptap/extension-italic

npm i https://pkg.pr.new/@tiptap/extension-italic@6490

@tiptap/extension-link

npm i https://pkg.pr.new/@tiptap/extension-link@6490

@tiptap/extension-mathematics

npm i https://pkg.pr.new/@tiptap/extension-mathematics@6490

@tiptap/extension-list

npm i https://pkg.pr.new/@tiptap/extension-list@6490

@tiptap/extension-mention

npm i https://pkg.pr.new/@tiptap/extension-mention@6490

@tiptap/extension-node-range

npm i https://pkg.pr.new/@tiptap/extension-node-range@6490

@tiptap/extension-ordered-list

npm i https://pkg.pr.new/@tiptap/extension-ordered-list@6490

@tiptap/extension-paragraph

npm i https://pkg.pr.new/@tiptap/extension-paragraph@6490

@tiptap/extension-strike

npm i https://pkg.pr.new/@tiptap/extension-strike@6490

@tiptap/extension-subscript

npm i https://pkg.pr.new/@tiptap/extension-subscript@6490

@tiptap/extension-superscript

npm i https://pkg.pr.new/@tiptap/extension-superscript@6490

@tiptap/extension-table

npm i https://pkg.pr.new/@tiptap/extension-table@6490

@tiptap/extension-text

npm i https://pkg.pr.new/@tiptap/extension-text@6490

@tiptap/extension-table-of-contents

npm i https://pkg.pr.new/@tiptap/extension-table-of-contents@6490

@tiptap/extension-text-align

npm i https://pkg.pr.new/@tiptap/extension-text-align@6490

@tiptap/extension-text-style

npm i https://pkg.pr.new/@tiptap/extension-text-style@6490

@tiptap/extension-underline

npm i https://pkg.pr.new/@tiptap/extension-underline@6490

@tiptap/extension-typography

npm i https://pkg.pr.new/@tiptap/extension-typography@6490

@tiptap/extension-unique-id

npm i https://pkg.pr.new/@tiptap/extension-unique-id@6490

@tiptap/extension-youtube

npm i https://pkg.pr.new/@tiptap/extension-youtube@6490

@tiptap/extensions

npm i https://pkg.pr.new/@tiptap/extensions@6490

@tiptap/html

npm i https://pkg.pr.new/@tiptap/html@6490

@tiptap/react

npm i https://pkg.pr.new/@tiptap/react@6490

@tiptap/pm

npm i https://pkg.pr.new/@tiptap/pm@6490

@tiptap/starter-kit

npm i https://pkg.pr.new/@tiptap/starter-kit@6490

@tiptap/static-renderer

npm i https://pkg.pr.new/@tiptap/static-renderer@6490

@tiptap/suggestion

npm i https://pkg.pr.new/@tiptap/suggestion@6490

@tiptap/vue-2

npm i https://pkg.pr.new/@tiptap/vue-2@6490

@tiptap/extension-character-count

npm i https://pkg.pr.new/@tiptap/extension-character-count@6490

@tiptap/extension-dropcursor

npm i https://pkg.pr.new/@tiptap/extension-dropcursor@6490

@tiptap/vue-3

npm i https://pkg.pr.new/@tiptap/vue-3@6490

@tiptap/extension-focus

npm i https://pkg.pr.new/@tiptap/extension-focus@6490

@tiptap/extension-gapcursor

npm i https://pkg.pr.new/@tiptap/extension-gapcursor@6490

@tiptap/extension-history

npm i https://pkg.pr.new/@tiptap/extension-history@6490

@tiptap/extension-list-item

npm i https://pkg.pr.new/@tiptap/extension-list-item@6490

@tiptap/extension-list-keymap

npm i https://pkg.pr.new/@tiptap/extension-list-keymap@6490

@tiptap/extension-placeholder

npm i https://pkg.pr.new/@tiptap/extension-placeholder@6490

@tiptap/extension-table-cell

npm i https://pkg.pr.new/@tiptap/extension-table-cell@6490

@tiptap/extension-table-header

npm i https://pkg.pr.new/@tiptap/extension-table-header@6490

@tiptap/extension-table-row

npm i https://pkg.pr.new/@tiptap/extension-table-row@6490

@tiptap/extension-task-list

npm i https://pkg.pr.new/@tiptap/extension-task-list@6490

@tiptap/extension-task-item

npm i https://pkg.pr.new/@tiptap/extension-task-item@6490

commit: 65b5b9f

@bdbch bdbch merged commit a68b258 into next Jun 21, 2025
16 checks passed
@bdbch bdbch deleted the bdbch/gh-actions-use-changeset-deploy branch June 21, 2025 16:58
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.

1 participant