From 8488a56b2b7dac4b0450d403524913f1a8f25e4f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 17 Aug 2023 14:56:51 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 22 ++++++++++++++-------- core/README.md | 5 ++++- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b43681..122f613 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,19 @@ jobs: with: package-path: ./core/package.json + + - name: Generate Contributors Images + uses: jaywcjlove/github-action-contributors@main + with: + filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) + output: www/build/CONTRIBUTORS.svg + avatarSize: 42 + + - name: Create Coverage Badges + uses: jaywcjlove/coverage-badges-cli@main + with: + output: www/build/badges.svg + - name: Generate Changelog id: changelog uses: jaywcjlove/changelog-generator@main @@ -57,16 +70,9 @@ jobs: ${{ steps.changelog.outputs.compareurl }} ${{ steps.changelog.outputs.changelog }} - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - run: npm publish --access public name: 📦 @uiw/react-only-when publish to NPM continue-on-error: true working-directory: core env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - # - run: npm install @jsdevtools/npm-publish -g - # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/core/README.md b/core/README.md index 3bf05cf..1e11a47 100644 --- a/core/README.md +++ b/core/README.md @@ -1,7 +1,10 @@ react-only-when === -[![Build & Deploy](https://github.com/uiwjs/react-only-when/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-only-when/actions/workflows/ci.yml) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-only-when)](https://www.npmjs.com/package/@uiw/react-only-when) [![npm version](https://img.shields.io/npm/v/@uiw/react-only-when.svg)](https://www.npmjs.com/package/@uiw/react-only-when) [![Coverage Status](https://coveralls.io/repos/github/uiwjs/react-only-when/badge.svg?branch=main)](https://coveralls.io/github/uiwjs/react-only-when?branch=main) +[![Build & Deploy](https://github.com/uiwjs/react-only-when/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-only-when/actions/workflows/ci.yml) +[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-only-when)](https://www.npmjs.com/package/@uiw/react-only-when) +[![npm version](https://img.shields.io/npm/v/@uiw/react-only-when.svg)](https://www.npmjs.com/package/@uiw/react-only-when) +[![Coverage Status](https://uiwjs.github.io/react-only-when/badges.svg)](https://uiwjs.github.io/react-only-when/coverage/lcov-report/) A declarative component for conditional rendering. Copy [`react-only-when`](https://github.com/sag1v/react-only-when), let it support TypeScript.