Skip to content

Commit

Permalink
chore: update github workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 30, 2021
1 parent b7554da commit c1f7281
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,51 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '10.x'
node-version: 14

- run: npm install
- run: npm run build
- run: npm run coverage

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

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.3.9
uses: jaywcjlove/changelog-generator@v1.3.10
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Release
id: create_release
uses: actions/create-release@latest
if: steps.create_tag.outputs.successful
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.create_tag.outputs.version }}
release_name: ${{ steps.create_tag.outputs.version }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/rehype-attr@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![](https://img.shields.io/github/issues/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/releases) [![](https://img.shields.io/github/forks/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/network) [![](https://img.shields.io/github/stars/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/stargazers) [![](https://img.shields.io/github/release/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/releases)
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/rehype-attr@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
[![](https://img.shields.io/github/issues/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/releases)
[![](https://img.shields.io/github/forks/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/network)
[![](https://img.shields.io/github/stars/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/stargazers)
[![](https://img.shields.io/github/release/jaywcjlove/rehype-attr.svg)](https://github.com/jaywcjlove/rehype-attr/releases)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/rehype-attr)](https://bundlephobia.com/result?p=rehype-attr@${{steps.create_tag.outputs.versionNumber}})
```bash
npm i @uiw/react-heat-map@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down

0 comments on commit c1f7281

Please sign in to comment.