diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7f8966d..e1132e4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,5 @@ updates: schedule: # Check for updates to GitHub Actions every month interval: "monthly" + cooldown: + default-days: 7 diff --git a/.github/workflows/polish-the-code.yml b/.github/workflows/polish-the-code.yml index 7709d14..799635b 100644 --- a/.github/workflows/polish-the-code.yml +++ b/.github/workflows/polish-the-code.yml @@ -29,14 +29,17 @@ jobs: # Limit the running time timeout-minutes: 10 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: - ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit - fetch-depth: 0 # required for merge-base check + # checkout PR HEAD commit + ref: ${{ github.event.pull_request.head.sha }} + # required for merge-base check + fetch-depth: 0 persist-credentials: false - uses: commit-check/commit-check-action@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because use of pr-comments + # use GITHUB_TOKEN because use of pr-comments + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: message: true # to accept dependabot/github_actions/* @@ -48,6 +51,6 @@ jobs: super-linter: needs: commit-check - uses: WorkOfStan/seablast-actions/.github/workflows/linter.yml@v0.2.7 + uses: WorkOfStan/seablast-actions/.github/workflows/linter.yml@v0.2.9 with: runs-on: "ubuntu-latest" diff --git a/.github/workflows/prettier-fix.yml b/.github/workflows/prettier-fix.yml index 08706a5..8b05c8b 100644 --- a/.github/workflows/prettier-fix.yml +++ b/.github/workflows/prettier-fix.yml @@ -27,4 +27,4 @@ jobs: with: commit-changes: true #debug: true - #node-version: "20" + #node-version: "24" diff --git a/CHANGELOG.md b/CHANGELOG.md index c9187b3..26dfc72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### `Security` in case of vulnerabilities +## [1.1.7] - 2026-03-15 + +ci(Node.js): change the default from version 20 to 24 + +### Changed + +- refactor(deps): bump Node.js, actions/checkout, seablast/actions:linter + ## [1.1.6.2] - 2025-10-23 chore: make the commit message compliant with Conventional Commits @@ -134,7 +142,8 @@ fix: pull request issues - This GitHub Action automates Prettier formatting across your project, ensuring consistent code styling by creating a new branch for review when necessary. It simplifies integrating Prettier into your workflow, although updates to workflow YAML files in `.github/workflows/` must be done manually. -[Unreleased]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6.2...HEAD +[Unreleased]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.7...HEAD +[1.1.7]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6.2...v1.1.7?w=1 [1.1.6.2]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6.1...v1.1.6.2?w=1 [1.1.6.1]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6...v1.1.6.1?w=1 [1.1.6]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.5...v1.1.6?w=1 diff --git a/LICENSE b/LICENSE index 56c5644..7fb7acf 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024-2025 WorkOfStan +Copyright (c) 2024-2026 WorkOfStan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c454093..8522ab0 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ permissions: | `commit-changes` | If `true`, commits changes to the current branch instead of creating a new one | Boolean | `false` | | `commit-message` | Commit message for the changes | String | `"chore(prettier): apply Prettier fixes automatically"` | | `debug` | Enable extra debug output (list of branches). | Boolean | `false` | -| `node-version` | Node.js version to use | String | `"20"` | +| `node-version` | Node.js version to use | String | `"24"` | | `prettier-config-path` | Optional path to a custom Prettier config file | String | `""` | | `skip-package-setup` | If `true`, skips `npm init` and dependency installation steps | Boolean | `false` | diff --git a/action.yml b/action.yml index 1a6b5a3..a0f986b 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,7 @@ inputs: node-version: description: "Node.js version to use" type: string - default: "20" + default: "24" prettier-config-path: description: "Optional path to a custom Prettier config file" type: string @@ -40,7 +40,7 @@ inputs: outputs: branch-name: - description: "The branch where changes were committed" + description: "The branch, where changes were committed" changed-files: description: "Comma-separated list of files changed by Prettier" @@ -48,14 +48,16 @@ runs: using: "composite" steps: - name: Display version - run: echo "prettier-fix::v1.1.6.2 running" + run: echo "prettier-fix::v1.1.7 running" shell: bash - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: - ref: ${{ github.ref }} # Fetch latest changes (even by previous job) - fetch-depth: 0 # Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found. + # Fetch latest changes (even by previous job) + ref: ${{ github.ref }} + # Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found. + fetch-depth: 0 # Fetch latest changes (even by previous job) - name: Fetch latest changes