From 3518fbb93736b7d7b9f584cf42a3dd406c85b1c5 Mon Sep 17 00:00:00 2001 From: Chrilleweb Date: Tue, 27 Jan 2026 22:13:48 +0100 Subject: [PATCH 1/2] chore: added JSDOC for comparisonFile --- src/core/scan/determineComparisonFile.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/scan/determineComparisonFile.ts b/src/core/scan/determineComparisonFile.ts index 33b2259..d7cf05c 100644 --- a/src/core/scan/determineComparisonFile.ts +++ b/src/core/scan/determineComparisonFile.ts @@ -4,6 +4,9 @@ import type { ScanUsageOptions } from '../../config/types.js'; import { resolveFromCwd } from '../helpers/resolveFromCwd.js'; import { DEFAULT_ENV_CANDIDATES } from '../../config/constants.js'; +/** + * Resolved comparison file with absolute path and display name. + */ type ComparisonFile = { path: string; name: string; From 0c3152831988ac050c1e5b923982fc67c8ff5861 Mon Sep 17 00:00:00 2001 From: Chrilleweb Date: Wed, 28 Jan 2026 17:02:55 +0100 Subject: [PATCH 2/2] chore: release-it modified --- .github/workflows/release.yml | 18 +++++++++++++----- .release-it.json | 2 +- CHANGELOG.md | 17 ++--------------- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5f5cfb..ab8668f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,11 @@ name: Release on: - push: + workflow_run: + # Trigger this workflow when the "build, test and lint" workflow completes on the main branch + workflows: ["build, test and lint"] + types: + - completed branches: - main @@ -10,11 +14,13 @@ permissions: jobs: check: + # Only run if the triggering workflow succeeded + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest outputs: should_release: ${{ steps.check.outputs.should_release }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 @@ -37,14 +43,16 @@ jobs: release: needs: check - if: needs.check.outputs.should_release == 'true' + # Only run release job if a release is needed and prevent releases from forks + if: needs.check.outputs.should_release == 'true' && github.repository == 'Chrilleweb/dotenv-diff' runs-on: ubuntu-latest permissions: id-token: write contents: write steps: - - uses: actions/checkout@v4 + - name: Checkout repository + - uses: actions/checkout@v6 with: fetch-depth: 0 # fetch all history for tags @@ -57,7 +65,7 @@ jobs: with: version: 10 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 24 registry-url: 'https://registry.npmjs.org' diff --git a/.release-it.json b/.release-it.json index 1c7989c..03887b1 100644 --- a/.release-it.json +++ b/.release-it.json @@ -37,7 +37,7 @@ ] }, "infile": "CHANGELOG.md", - "header": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n" + "header": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## Unreleased\n\n- \"You miss 100 percent of the chances you don't take. — Wayne Gretzky\" — Michael Scott\n" } } } diff --git a/CHANGELOG.md b/CHANGELOG.md index d5976da..083381c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.2...vnull) (2026-01-27) +## [v2.5.3](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.2...v2.5.3) (2026-01-27) ### Bug Fixes @@ -18,24 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * docs folder instead of public ([f88ad42](https://github.com/Chrilleweb/dotenv-diff/commit/f88ad422a5119cf50b6e27e2ddb7ffd7489e28d4)) * updated readme gif links ([c45c2df](https://github.com/Chrilleweb/dotenv-diff/commit/c45c2df166139ad2c7a83af3df56032d4f81b310)) -## [](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.1...vnull) (2026-01-26) +## [v2.5.2](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.1...v2.5.2) (2026-01-26) ### Bug Fixes * scanning color magenta ([b90107b](https://github.com/Chrilleweb/dotenv-diff/commit/b90107b0163de3e0ce5def6f235bc40510be71b7)) -### Changelog - -All notable changes to this project will be documented in this file. Dates are displayed in UTC. - -Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - -#### [v2.5.2](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.1...v2.5.2) - -- fix: scanning color magenta [`#223`](https://github.com/Chrilleweb/dotenv-diff/pull/223) -- chore: trying with updated npm [`#222`](https://github.com/Chrilleweb/dotenv-diff/pull/222) -- chore: 2 workflows for npm publish and tags release [`#221`](https://github.com/Chrilleweb/dotenv-diff/pull/221) - #### [v2.5.1](https://github.com/Chrilleweb/dotenv-diff/compare/2.5.0...v2.5.1) > 26 January 2026