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 12, 2022
1 parent 24e721b commit c6d38af
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
node-version: 14

- run: npm install
- run: npm i coverage-badges-cli -g
- run: npm run build
- run: npm run test:coverage
- run: coverage-badges

- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main
with:
output: build/badges.svg

- run: npm run doc
- run: npm run bundle
- run: npm run bundle:min
Expand All @@ -30,30 +34,26 @@ jobs:
output: build/CONTRIBUTORS.svg
avatarSize: 42

- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.6
with:
output: build/badges.svg
package-path: ./package.json

- name: get tag version
id: tag_version
uses: jaywcjlove/changelog-generator@v1.5.0

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.4.6
uses: jaywcjlove/changelog-generator@v1.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
Expand All @@ -70,10 +70,17 @@ jobs:
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-textarea-code-editor)](https://bundlephobia.com/result?p=@uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}})
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-textarea-code-editor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
```bash
npm i @uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- name: 📦 @uiw/react-textarea-code-editor publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json

0 comments on commit c6d38af

Please sign in to comment.