From 886da55089069afcde414aaa9783cafb55030dd5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 12 Aug 2021 20:05:13 +0800 Subject: [PATCH] chore: workflows config. --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98add74490..1819166825 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,19 @@ jobs: - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.4.2 + uses: jaywcjlove/changelog-generator@v1.4.3 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}' + filter: (^[\s]+?[R|r]elease)|(^[R|r]elease) + - run: npm install - run: npm run build + + - run: npm install @jsdevtools/npm-publish -g + - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json + - run: npm run dash - name: Deploy @@ -30,4 +34,28 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./.deploy - \ No newline at end of file + + - name: Create Tag + id: create_tag + uses: jaywcjlove/create-tag-action@v1.2.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + package-path: ./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/linux-command@${{steps.changelog.outputs.version}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/linux-command)](https://bundlephobia.com/result?p=linux-command@${{steps.changelog.outputs.version}}) + + ```bash + npm i linux-command@${{steps.changelog.outputs.version}} + ``` + + ${{ steps.changelog.outputs.compareurl }} + + ${{ steps.changelog.outputs.changelog }} \ No newline at end of file