|
17 | 17 | - run: npm install |
18 | 18 | - run: npm run build |
19 | 19 |
|
| 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 | + |
20 | 31 | - name: Deploy |
21 | 32 | uses: peaceiris/actions-gh-pages@v3 |
22 | 33 | with: |
23 | 34 | github_token: ${{ secrets.GITHUB_TOKEN }} |
24 | 35 | 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://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 }} |
0 commit comments