Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 5, 2022
1 parent 869cbb2 commit 10d5ff7
Showing 1 changed file with 49 additions and 50 deletions.
99 changes: 49 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ jobs:
with:
node-version: 14

- name: Look Changelog
uses: jaywcjlove/changelog-generator@v1.4.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (renovate-bot|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- run: npm install
- run: npm run hoist
- run: npm run build
Expand Down Expand Up @@ -65,39 +58,6 @@ jobs:
working-directory: example/umd
run: npm run build

- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.4
with:
package-path: ./packages/tsbb/package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.4.8
if: steps.create_tag.outputs.successful
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: Create Release
uses: jaywcjlove/create-tag-action@v1.3.4
with:
package-path: ./packages/tsbb/package.json
release: true
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
```bash
npm i tsbb@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: mkdir -p zip

- name: Compress basic Example.
Expand Down Expand Up @@ -150,6 +110,23 @@ jobs:
working-directory: example/vue
- run: cp -rp example/vue/vue.zip ./zip

- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output zip/doc.html --source packages/tsbb/README.md
- run: markdown-to-html --output zip/create-tsbb.html --source packages/create-tsbb/README.md

- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: ./zip/CONTRIBUTORS.svg
avatarSize: 36

- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.6
with:
package-path: ./packages/tsbb/package.json

- name: Compress TSBB Example Download webpage.
working-directory: zip
run: |
Expand Down Expand Up @@ -218,25 +195,47 @@ jobs:
</body></html>
EOF
- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output zip/doc.html --source packages/tsbb/README.md
- run: markdown-to-html --output zip/create-tsbb.html --source packages/create-tsbb/README.md

- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: ./zip/CONTRIBUTORS.svg
avatarSize: 36
- name: get tag version
id: tag_version
uses: jaywcjlove/changelog-generator@v1.5.0

- name: Build and Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
force_orphan: true
publish_branch: gh-pages
publish_dir: ./zip

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.5.0
if: steps.create_tag.outputs.successful
with:
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: Create Release
uses: jaywcjlove/create-tag-action@v1.3.6
with:
package-path: ./packages/tsbb/package.json
release: true
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/tsbb/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
```bash
npm i tsbb@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.changelog }}
- name: 📦 tsbb publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
Expand Down

0 comments on commit 10d5ff7

Please sign in to comment.