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
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ jobs:
changelog:
name: Generate new changelog
runs-on: ubuntu-latest
outputs:
commit_hash: '${{ steps.committing.outputs.commit_hash }}'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -154,6 +156,7 @@ jobs:
name: changelog
path: CHANGELOG.md
- name: Commit and push the new changelog
id: committing
run: |
if [ -z $(git status -uno --porcelain) ]; then
printf 'Changelogs are identical, nothing to commit\n'
Expand All @@ -164,6 +167,9 @@ jobs:

git add CHANGELOG.md
git commit -am "Update the project changelog"

commit_hash=$( git --no-pager log -1 --format=%H )
echo "commit_hash=${commit_hash}" >> "$GITHUB_OUTPUT"
fi
- name: Push changes
uses: ad-m/github-push-action@v0.8.0
Expand All @@ -181,6 +187,7 @@ jobs:
uses: actions/checkout@v4
with:
set-safe-directory: 'true'
ref: '${{ needs.changelog.outputs.commit_hash }}'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Maybe generate tag
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "async-wait-until",
"version": "2.0.24",
"version": "2.0.25",
"description": "Waits until the given predicate function returns a truthy value, then resolves",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
Expand Down