From 4c0d5a21fc86635c67cc57ffe89d842c34ade284 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Mon, 25 Sep 2023 13:42:26 +0200 Subject: [PATCH] feat: Use Node.js 20 in action (#240) --- .github/workflows/lint-pr-title-preview-ignoreLabels.yml | 2 +- .github/workflows/lint-pr-title-preview-outputErrorMessage.yml | 2 +- .../workflows/lint-pr-title-preview-validateSingleCommit.yml | 2 +- .github/workflows/lint-pr-title-preview.yml | 2 +- .github/workflows/lint-pr-title.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- action.yml | 2 +- package.json | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint-pr-title-preview-ignoreLabels.yml b/.github/workflows/lint-pr-title-preview-ignoreLabels.yml index 1ba809c75..7751ed4b6 100644 --- a/.github/workflows/lint-pr-title-preview-ignoreLabels.yml +++ b/.github/workflows/lint-pr-title-preview-ignoreLabels.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: yarn install - run: yarn build - uses: ./ diff --git a/.github/workflows/lint-pr-title-preview-outputErrorMessage.yml b/.github/workflows/lint-pr-title-preview-outputErrorMessage.yml index d5f0d263b..ef7affb20 100644 --- a/.github/workflows/lint-pr-title-preview-outputErrorMessage.yml +++ b/.github/workflows/lint-pr-title-preview-outputErrorMessage.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: yarn install - run: yarn build - uses: ./ diff --git a/.github/workflows/lint-pr-title-preview-validateSingleCommit.yml b/.github/workflows/lint-pr-title-preview-validateSingleCommit.yml index 0f548abab..db3a50314 100644 --- a/.github/workflows/lint-pr-title-preview-validateSingleCommit.yml +++ b/.github/workflows/lint-pr-title-preview-validateSingleCommit.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: yarn install - run: yarn build - uses: ./ diff --git a/.github/workflows/lint-pr-title-preview.yml b/.github/workflows/lint-pr-title-preview.yml index 3263dcc5a..d371dae3c 100644 --- a/.github/workflows/lint-pr-title-preview.yml +++ b/.github/workflows/lint-pr-title-preview.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: yarn install - run: yarn build - uses: ./ diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index c8e5647cf..77226552e 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - uses: ./ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e98c21fa3..803b41147 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: yarn install - run: yarn build - run: yarn semantic-release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7988f365..137deccd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: yarn install - run: yarn lint && yarn test diff --git a/action.yml b/action.yml index 640c6a2e5..130dcadc9 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: semantic-pull-request author: Jan Amann description: Ensure your PR title matches the Conventional Commits spec (https://www.conventionalcommits.org/). runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'shield' diff --git a/package.json b/package.json index 9704bd902..274ea6db3 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ "semantic-release": "^19.0.5" }, "engines": { - "node": "^16.0.0" + "node": "^20.0.0" } }