Skip to content

Commit 91aa683

Browse files
committed
fix: fix typedoc error.
1 parent 8d0a33e commit 91aa683

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,56 @@ jobs:
1717
- run: npm install
1818
- run: npm run build
1919

20+
- name: Is a tag created auto?
21+
id: create_tag
22+
uses: jaywcjlove/create-tag-action@main
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
package-path: ./package.json
26+
27+
- name: get tag version
28+
id: tag_version
29+
uses: jaywcjlove/changelog-generator@main
30+
2031
- name: Deploy
2132
uses: peaceiris/actions-gh-pages@v3
2233
with:
2334
github_token: ${{ secrets.GITHUB_TOKEN }}
2435
publish_dir: ./typedoc
36+
37+
- name: Generate Changelog
38+
id: changelog
39+
uses: jaywcjlove/changelog-generator@main
40+
if: steps.create_tag.outputs.successful
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
head-ref: ${{ steps.create_tag.outputs.version }}
44+
filter-author: (小弟调调™|Renovate Bot)
45+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
46+
47+
- name: Create Release
48+
uses: ncipollo/release-action@v1
49+
if: steps.create_tag.outputs.successful
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
name: ${{ steps.create_tag.outputs.version }}
53+
tag: ${{ steps.create_tag.outputs.version }}
54+
body: |
55+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native-amap-geolocation@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
56+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-markdown-preview/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
57+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
58+
${{ steps.changelog.outputs.changelog }}
59+
```bash
60+
npm i @uiw/react-native-amap-geolocation@${{steps.create_tag.outputs.versionNumber}}
61+
```
62+
- name: package.json info
63+
uses: jaywcjlove/github-action-package@main
64+
with:
65+
path: package.json
66+
unset: scripts,devDependencies
67+
68+
- run: npm publish
69+
name: 📦 @uiw/react-native-amap-geolocation publish to NPM
70+
continue-on-error: true
71+
env:
72+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

typedoc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://typedoc.org/schema.json",
23
"inputFiles": "./index.d.ts",
34
"out": "typedoc",
45
"name": "React Native Amap Geolocation",

0 commit comments

Comments
 (0)