mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
chore: to use changesets publish
This commit is contained in:
parent
1f87cd9411
commit
e5909d9a56
@ -58,11 +58,5 @@
|
|||||||
"@tiptap/vue-2": "2.4.0",
|
"@tiptap/vue-2": "2.4.0",
|
||||||
"@tiptap/vue-3": "2.4.0"
|
"@tiptap/vue-3": "2.4.0"
|
||||||
},
|
},
|
||||||
"changesets": [
|
"changesets": ["cuddly-socks-beg", "five-tigers-kick", "mean-cooks-cheer", "tasty-moons-move"]
|
||||||
"brown-gorillas-draw",
|
|
||||||
"cuddly-socks-beg",
|
|
||||||
"five-tigers-kick",
|
|
||||||
"mean-cooks-cheer",
|
|
||||||
"tasty-moons-move"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -49,11 +49,13 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
- name: Create Release PR or publish stable version to npm
|
- name: Create Release PR or publish stable version to npm
|
||||||
id: changesets
|
id: changesets
|
||||||
uses: changesets/action@v1
|
uses: changesets/action@v1
|
||||||
with:
|
with:
|
||||||
publish: ${{ github.ref_name == 'main' && 'npm run publish' || 'npm run publish:pre' }}
|
|
||||||
title: ${{ github.ref_name == 'main' && 'Publish a new stable version' || 'Publish a new pre-release version' }}
|
title: ${{ github.ref_name == 'main' && 'Publish a new stable version' || 'Publish a new pre-release version' }}
|
||||||
commit: >-
|
commit: >-
|
||||||
${{ github.ref_name == 'main' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }}
|
${{ github.ref_name == 'main' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }}
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
"build:demos": "npm run build:demos --workspace demos",
|
"build:demos": "npm run build:demos --workspace demos",
|
||||||
"serve": "npm run build:demos && npm --prefix ./demos run preview",
|
"serve": "npm run build:demos && npm --prefix ./demos run preview",
|
||||||
"build:ci": "turbo run build",
|
"build:ci": "turbo run build",
|
||||||
"publish": "turbo run build && npm publish --workspace packages --provenance --tag latest --access public",
|
|
||||||
"publish:pre": "turbo run build && npm publish --workspace packages --provenance --tag next --access public",
|
|
||||||
"clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist",
|
"clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist",
|
||||||
"clean:packs": "rm -rf ./packages/*/*.tgz",
|
"clean:packs": "rm -rf ./packages/*/*.tgz",
|
||||||
"reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install",
|
"reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install",
|
||||||
@ -76,5 +74,8 @@
|
|||||||
"overrides": {
|
"overrides": {
|
||||||
"@rollup/pluginutils": "^5.1.0"
|
"@rollup/pluginutils": "^5.1.0"
|
||||||
},
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"provenance": true
|
||||||
|
},
|
||||||
"name": "tiptap"
|
"name": "tiptap"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user