From 41eb86cd2b2e932bded6acf3a18f0de2a9e07901 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 29 Jun 2024 22:20:31 +0800 Subject: [PATCH] ci: update workflows config. --- .github/FUNDING.yml | 3 +++ .github/workflows/ci.yml | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..abe8b76 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +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 f0deba6..369490b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - 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 @@ -41,7 +41,7 @@ jobs: uses: jaywcjlove/changelog-generator@main - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: commit_message: ${{ github.event.head_commit.message }} ${{steps.tag_version.outputs.tag}} github_token: ${{ secrets.GITHUB_TOKEN }} @@ -125,7 +125,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install run: npm install --build-from-source @@ -161,7 +161,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm install - run: npm run hoist @@ -194,7 +194,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm install - run: npm run hoist - run: npm run build @@ -230,7 +230,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - uses: actions/download-artifact@v4 with: @@ -263,6 +263,7 @@ jobs: uses: ncipollo/release-action@v1 if: needs.build.outputs.successful with: + allowUpdates: true token: ${{ secrets.GITHUB_TOKEN }} name: ${{ steps.changelog.outputs.tag }} tag: ${{ steps.changelog.outputs.tag }}