From a86f1af63547b10fa621ef11b6deaf02f6d4f985 Mon Sep 17 00:00:00 2001 From: Shoma Kokuryo Date: Fri, 23 Feb 2024 16:18:50 +0900 Subject: [PATCH] fix workflows --- .github/workflows/nodejs.yml | 12 +++++++++--- .github/workflows/publish.yml | 8 +++----- .github/workflows/reviewdog.yml | 2 +- .github/workflows/validateRenovate.yml | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4efd2da5..2ef796da 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,14 +1,20 @@ name: Node CI -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x] steps: - name: Checkout source diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 36074d85..0452c327 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,18 +8,18 @@ on: jobs: publish: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.event.pull_request.merged == true steps: - name: Checkout source uses: actions/checkout@v4 with: fetch-depth: -1 - - name: Use Node.js "14.x" + - name: Use Node.js "18.x" uses: actions/setup-node@v4 with: cache: npm - node-version: "14.x" + node-version: "18.x" - name: Install dependencies run: npm install env: @@ -61,7 +61,6 @@ jobs: We publish new version of this package. Cheers! repo-token: ${{ secrets.GITHUB_TOKEN }} - repo-token-user-login: "github-actions[bot]" allow-repeats: false - name: Post comment uses: mshick/add-pr-comment@v2 @@ -72,5 +71,4 @@ jobs: We include your contributions in next release. Cheers! repo-token: ${{ secrets.GITHUB_TOKEN }} - repo-token-user-login: "github-actions[bot]" allow-repeats: false diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index d2557a84..07c89b8d 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -9,7 +9,7 @@ on: jobs: eslint: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Run reviewdog diff --git a/.github/workflows/validateRenovate.yml b/.github/workflows/validateRenovate.yml index 50a4048d..bf6a1c19 100644 --- a/.github/workflows/validateRenovate.yml +++ b/.github/workflows/validateRenovate.yml @@ -13,6 +13,6 @@ jobs: - uses: actions/setup-node@v4 with: cache: npm - node-version: "14.x" + node-version: "18.x" - name: Validate config run: npx --package renovate -c 'renovate-config-validator'