From eea674d941287739f8fbbc95cef1729e9b55e812 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 9 Jul 2024 21:08:17 +0800 Subject: [PATCH] ci: update workflows config. --- .github/FUNDING.yml | 12 +++--------- .github/workflows/ci.yml | 11 ++++++----- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 6c68847..abe8b76 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,9 +1,3 @@ -# These are supported funding model platforms - -# github: [jaywcjlove] -# patreon: # Replace with a single Patreon username -# open_collective: # Replace with a single Open Collective username -# ko_fi: # Replace with a single Ko-fi username -# tidelift: npm/colors-cli -# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -custom: https://jaywcjlove.github.io/#/sponsor +ko_fi: jaywcjlove +buy_me_a_coffee: jaywcjlove +custom: ["https://www.paypal.me/kennyiseeyou", "https://jaywcjlove.github.io/#/sponsor"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba42999..8470343 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,17 +11,17 @@ jobs: contents: write id-token: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: 'https://registry.npmjs.org' - run: npm install - run: npm run build - run: npm run coverage - - run: npm install idoc@1.27.2 -g + - run: npm install idoc@1 -g - run: idoc -s "Console Emojis {{version}}" - name: Create Coverage Badges @@ -50,7 +50,7 @@ jobs: uses: jaywcjlove/changelog-generator@main - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }} github_token: ${{ secrets.GITHUB_TOKEN }} @@ -68,6 +68,7 @@ jobs: uses: ncipollo/release-action@v1 if: steps.create_tag.outputs.successful with: + allowUpdates: true token: ${{ secrets.GITHUB_TOKEN }} name: ${{ steps.create_tag.outputs.version }} tag: ${{ steps.create_tag.outputs.version }}