From 4c275815e190b1901f61a9ae0bffdf82458f55b1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 24 Dec 2021 00:14:39 +0800 Subject: [PATCH] chore: update .github/workflows/ci.yml --- .github/workflows/ci.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51442ab8..46ddbc11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,4 +15,37 @@ jobs: node-version: 14 - run: npm install - - run: npm run build \ No newline at end of file + - run: npm run build + + - name: Create Tag + id: create_tag + uses: jaywcjlove/create-tag-action@v1.3.4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + package-path: ./package.json + + - name: Generate Changelog + id: changelog + uses: jaywcjlove/changelog-generator@v1.4.8 + if: steps.create_tag.outputs.successful + with: + token: ${{ secrets.GITHUB_TOKEN }} + head-ref: ${{steps.create_tag.outputs.version}} + filter-author: (renovate-bot|Renovate Bot) + filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' + + - name: Create Release + uses: jaywcjlove/create-tag-action@v1.3.4 + with: + package-path: ./package.json + release: true + body: | + ${{ steps.changelog.outputs.compareurl }} + + ${{ steps.changelog.outputs.changelog }} + + - name: 📦 @tsbb/babel-preset-tsbb publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./package.json \ No newline at end of file