Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
17 changes: 2 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
Loading