Skip to content

Commit

Permalink
ci: fix release
Browse files Browse the repository at this point in the history
Release-As: 1.0.0
  • Loading branch information
pionxzh committed Dec 5, 2022
1 parent e42aa95 commit 771c435
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '**'
pull_request:
branches:
- main
- master

jobs:
check:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release-please
on:
push:
branches:
- main
- master

jobs:
release-please:
Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"packages/userscript":"1.0.0"}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
34 changes: 17 additions & 17 deletions packages/userscript/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

interface ConversationItem {
author: {
name: string
avatar: string
}
lines: ConversationLine[][]
}

main()

function appendLeftSidebarItem() {
function main() {
onloadSafe(() => {
const firstItem = document.querySelector('[class^="Navigation__NavMenuItem"]')
if (!firstItem) return
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit 771c435

Please sign in to comment.