ci: fix release

Release-As: 1.0.0
This commit is contained in:
Pionxzh
2022-12-05 19:58:03 +08:00
parent e42aa95dbd
commit 771c435ebc
6 changed files with 23 additions and 22 deletions

View File

@@ -6,7 +6,7 @@ on:
- '**'
pull_request:
branches:
- main
- master
jobs:
check:

View File

@@ -3,7 +3,7 @@ name: release-please
on:
push:
branches:
- main
- master
jobs:
release-please:

View File

@@ -0,0 +1 @@
{"packages/userscript":"1.0.0"}

View File

@@ -25,7 +25,7 @@ Install **Tampermonkey** **[Chrome](https://www.tampermonkey.net/)** / **[Fir
| Greasyfork | GitHub |
| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [Insatall](https://greasyfork.org/scripts/456055-chatgpt-exporter) | [Insatall](https://raw.githubusercontent.com/pionxzh/chatgpt-exporter/main/dist/chatgpt.user.js) |
| [Insatall](https://greasyfork.org/scripts/456055-chatgpt-exporter) | [Insatall](https://raw.githubusercontent.com/pionxzh/chatgpt-exporter/master/dist/chatgpt.user.js) |
# Example

View File

@@ -3,9 +3,24 @@ import './style.scss'
import { copyToClipboard, downloadFile, getBase64FromImg, onloadSafe } from './utils'
import templateHtml from './template.html?raw'
appendLeftSidebarItem()
type ConversationLine = |
{ type: 'text'; text: string } |
{ type: 'image'; src: string } |
{ type: 'code'; code: string } |
{ type: 'code-block'; lang: string; code: string } |
{ type: 'link'; text: string; href: string }
function appendLeftSidebarItem() {
interface ConversationItem {
author: {
name: string
avatar: string
}
lines: ConversationLine[][]
}
main()
function main() {
onloadSafe(() => {
const firstItem = document.querySelector('[class^="Navigation__NavMenuItem"]')
if (!firstItem) return
@@ -31,21 +46,6 @@ function appendLeftSidebarItem() {
})
}
type ConversationLine = |
{ type: 'text'; text: string } |
{ type: 'image'; src: string } |
{ type: 'code'; code: string } |
{ type: 'code-block'; lang: string; code: string } |
{ type: 'link'; text: string; href: string }
interface ConversationItem {
author: {
name: string
avatar: string
}
lines: ConversationLine[][]
}
function copyToText() {
const items = getConversation()
if (items.length === 0) {

View File

@@ -2,8 +2,8 @@
"pull-request-header": ":robot: I have created a release",
"pull-request-title-pattern": "chore: release${component} ${version}",
"packages": {
"packages/exporter": {
"component": "exporter"
"packages/userscript": {
"component": "userscript"
}
}
}