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
24 changes: 19 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ jobs:
git push
fi

- name: Get previous tag
id: previous_tag
run: |
PREVIOUS_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
echo "Previous tag: $PREVIOUS_TAG"

- name: Create Git tag
run: |
git tag "v${{ steps.new_version.outputs.version }}"
Expand All @@ -129,8 +136,8 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get the date of the previous tag so we can filter PRs merged after it
PREVIOUS_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
# Use the previous tag captured before the new tag was created
PREVIOUS_TAG="${{ steps.previous_tag.outputs.tag }}"

if [ -z "$PREVIOUS_TAG" ]; then
SINCE_DATE="2000-01-01T00:00:00Z"
Expand All @@ -144,21 +151,28 @@ jobs:
PRS=$(gh pr list \
--state merged \
--base main \
--limit 200 \
--json number,title,body,mergedAt,author \
--jq "sort_by(.mergedAt) | [.[] | select(.mergedAt > \"$SINCE_DATE\")]")

PR_COUNT=$(echo "$PRS" | jq 'length')
echo "Found $PR_COUNT pull request(s)"

# Build the changelog file
echo "## Changes in v${{ steps.new_version.outputs.version }}" > /tmp/changelog.md
echo "## What's Changed in v${{ steps.new_version.outputs.version }}" > /tmp/changelog.md
echo "" >> /tmp/changelog.md

if [ "$PR_COUNT" -eq 0 ]; then
echo "_No pull requests found since the last release._" >> /tmp/changelog.md
else
echo "$PRS" | jq -r '.[] | "### [#\(.number)] \(.title)\n\n\(if .body and (.body | length) > 0 then .body else "_No description provided._" end)\n\n---\n"' \
echo "$PRS" | jq -r '.[] | "### [#\(.number)] \(.title)\n\n**Author:** @\(.author.login)\n\n\(if .body and (.body | length) > 0 then .body else "_No description provided._" end)\n\n---\n"' \
>> /tmp/changelog.md

# Append unique contributors section
echo "" >> /tmp/changelog.md
echo "## Contributors" >> /tmp/changelog.md
echo "" >> /tmp/changelog.md
echo "$PRS" | jq -r '[.[].author.login] | unique | sort | .[] | "- @\(.)"' >> /tmp/changelog.md
fi

# Save to output (multiline)
Expand All @@ -170,7 +184,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.new_version.outputs.version }}
name: Release v${{ steps.new_version.outputs.version }}
name: v${{ steps.new_version.outputs.version }}
body: ${{ steps.changelog.outputs.content }}
draft: false
prerelease: false
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
if: ${{ !(github.event_name == 'push' && github.actor == 'github-actions[bot]' && startsWith(github.event.head_commit.message, 'chore: bump version to ')) }}
if: "${{ !(github.event_name == 'push' && github.actor == 'github-actions[bot]' && startsWith(github.event.head_commit.message, 'chore: bump version to ')) }}"
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -44,11 +44,6 @@ jobs:
VITE_SUPABASE_URL: https://test.supabase.co
VITE_SUPABASE_ANON_KEY: test-key

- name: Build iOS project
run: npm run build:ios
env:
VITE_IOS_BUILD: "true"

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.worktrees
node_modules
dist
dev-dist
.env
.env.local
.env.development.local
Expand Down
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ define(['./workbox-21a80088'], (function (workbox) { 'use strict';
*/
workbox.precacheAndRoute([{
"url": "index.html",
"revision": "0.u5tkfl26p2g"
"revision": "0.febhrpu4fe"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
Loading