Skip to content
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

[pull] main from Milkdown:main #31

Merged
merged 5 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [["@milkdown/*"]],
"fixed": [["@milkdown/*"]],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [],
"ignore": ["@milkdown/e2e", "@milkdown/storybook"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
Expand Down
44 changes: 38 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
push:
branches: [main]

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -14,14 +16,44 @@ jobs:

- uses: ./.github/actions/setup

- name: build packs
run: pnpm build

- name: Create versions or publish to npm registry
uses: changesets/action@v1
with:
publish: pnpm release
commit: 'ci(changeset): release milkdown'
version: pnpm ci:version
commit: "chore: version packages"
title: "chore: version packages"
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: ./.github/actions/setup

- name: build packs
run: pnpm build

- name: Publish to NPM
run: pnpm ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get package version
run: |
MILKDOWN_VERSION=$(jq -r ".version" packages/kit/package.json)
echo "MILKDOWN_RELEASE_TAG=v${MILKDOWN_VERSION}" >> "$GITHUB_ENV"

- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
commit: main
tag: "${{ env.MILKDOWN_RELEASE_TAG }}"
body: "Please refer to [CHANGELOG.md](https://github.com/milkdown/milkdown/blob/${{ env.MILKDOWN_RELEASE_TAG }}/packages/kit/CHANGELOG.md) for details."
token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"build": "nx run-many --target=build --all --parallel",
"build:affected": "nx affected --target=build",
"build:packs": "pnpm --filter=@milkdown/* run build",
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
"ci:publish": "pnpm build:packs && pnpm publish --access public -r --no-git-checks --tag latest",
"graph": "nx dep-graph",
"clear": "rimraf 'packages/*/{lib,tsconfig.tsbuildinfo,node_modules,.rollup.cache}' && rimraf node_modules",
"changeset": "changeset",
Expand Down
23 changes: 23 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @milkdown/components

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]

## 7.5.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/components",
"type": "module",
"version": "7.5.5",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
23 changes: 23 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @milkdown/core

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]

## 7.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/core",
"type": "module",
"version": "7.5.0",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
23 changes: 23 additions & 0 deletions packages/crepe/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @milkdown/crepe

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]

## 7.5.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/crepe/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/crepe",
"type": "module",
"version": "7.5.7",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
23 changes: 23 additions & 0 deletions packages/ctx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @milkdown/ctx

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]

## 7.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ctx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/ctx",
"type": "module",
"version": "7.5.0",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
20 changes: 20 additions & 0 deletions packages/exception/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @milkdown/exception

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

## 7.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/exception/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/exception",
"type": "module",
"version": "7.5.0",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
23 changes: 23 additions & 0 deletions packages/integrations/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @milkdown/react

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]

## 7.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/react",
"type": "module",
"version": "7.5.0",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
23 changes: 23 additions & 0 deletions packages/integrations/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @milkdown/vue

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]

## 7.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@milkdown/vue",
"type": "module",
"version": "7.5.0",
"version": "7.5.8",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
40 changes: 40 additions & 0 deletions packages/kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @milkdown/kit

## 7.5.8

### Patch Changes

- db4ec60: Bug fixes and api improvements.

# Crepe

- Add image proxy config.
- Fix link preview text not properly truncated.
- Fix list item unstable selection.
- Fix button types.
- Reset index when slash menu out of bound.

# Core

- Prevent duplicate ids in the editor.
- Allow options to floating ui.
- Add undoable input rules.

- Updated dependencies [db4ec60]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]
- @milkdown/[email protected]

## 7.5.5

### Patch Changes
Expand Down
Loading
Loading