chore: update .github/workflows/ci.yml
This commit is contained in:
parent
19913d64ea
commit
6c496588ac
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@ -18,9 +18,45 @@ jobs:
|
|||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|
||||||
|
- name: Create Tag
|
||||||
|
id: create_tag
|
||||||
|
uses: jaywcjlove/create-tag-action@v1.3.5
|
||||||
|
with:
|
||||||
|
package-path: ./package.json
|
||||||
|
|
||||||
|
- name: Generate Changelog
|
||||||
|
id: changelog
|
||||||
|
uses: jaywcjlove/changelog-generator@v1.4.8
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
head-ref: ${{steps.create_tag.outputs.version}}
|
||||||
|
filter-author: (renovate-bot|Renovate Bot)
|
||||||
|
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
||||||
|
|
||||||
- name: Build and Deploy
|
- name: Build and Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v2.5.0
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
env:
|
with:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PUBLISH_BRANCH: gh-pages
|
publish_dir: ./typedoc
|
||||||
PUBLISH_DIR: ./typedoc
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: jaywcjlove/create-tag-action@v1.3.5
|
||||||
|
with:
|
||||||
|
package-path: ./package.json
|
||||||
|
release: true
|
||||||
|
body: |
|
||||||
|
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native-alipay@${{steps.changelog.outputs.version}}/file/README.md)
|
||||||
|
|
||||||
|
${{ steps.changelog.outputs.compareurl }}
|
||||||
|
|
||||||
|
${{ steps.changelog.outputs.changelog }}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i @uiw/react-native-alipay@${{steps.changelog.outputs.version}}
|
||||||
|
```
|
||||||
|
|
||||||
|
- name: 📦 @uiw/react-native-alipay publish to NPM
|
||||||
|
uses: JS-DevTools/npm-publish@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
|
package: ./package.json
|
||||||
|
Loading…
Reference in New Issue
Block a user