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 Jun 13, 2021
1 parent 87e1b94 commit 3c4b47d
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,38 @@ jobs:

- name: example simple
working-directory: example/simple
run: yarn run build
run: yarn run build

- name: Look Changelog
id: changelog
uses: jaywcjlove/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

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

- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./packages/core/package.json

- 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/react-dynamic-loadable@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm version](https://img.shields.io/npm/v/react-dynamic-loadable.svg)](https://www.npmjs.com/package/react-dynamic-loadable) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/react-dynamic-loadable)](https://bundlephobia.com/result?p=react-dynamic-loadable@${{steps.create_tag.outputs.versionNumber}})
```bash
npm i react-dynamic-loadable@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}

0 comments on commit 3c4b47d

Please sign in to comment.