From d5d0aef3e50b65ff77a2c4df32d41b4e34c415ce Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 7 Dec 2024 11:14:39 +0800 Subject: [PATCH] ci: add pr workflows config. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/pr.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4a710fc..336857e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,10 @@ 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' # - name: Cache dependencies diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..419d4c0b --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,31 @@ +name: CI-PR +on: + pull_request: + +env: + SKIP_PREFLIGHT_CHECK: true + +jobs: + build-deploy: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + + - name: Look Changelog + uses: jaywcjlove/changelog-generator@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot) + filter: (^[\s]+?[R|r]elease)|(^[R|r]elease) + + - run: npm install + - run: npm run build + - run: npm run test + \ No newline at end of file