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
21 changes: 9 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,28 @@ on:

permissions:
contents: write # needed for creating releases
packages: write # if you're also publishing packages

jobs:
release:
if: ${{ github.repository_owner == 'your-ehsan' && github.event.pull_request.merged}}
name: Create a release
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get the latest tag
- name: Get the latest tag from development
id: get_tag
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- name: Verify if the PR contains a tag
run: |
if [ -z "${{ env.LATEST_TAG }}" ]; then
LATEST_TAG=$(git tag --sort=-creatordate | head -n 1)
if [ -z "$LATEST_TAG" ]; then
echo "No tag found. Skipping release."
exit 1
else
echo "Latest tag: ${{ env.LATEST_TAG }}"
fi
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_OUTPUT

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand All @@ -48,13 +44,14 @@ jobs:

- name: Get pnpm store directory
shell: bash
id: get_store_path
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
path: ${{ steps.get_store_path.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
Expand Down Expand Up @@ -87,7 +84,7 @@ jobs:
dist/*.exe
dist/latest.yml
body_path: CHANGELOG.md
tag_name: ${{ env.LATEST_TAG }}
tag_name: ${{ steps.get_tag.outputs.LATEST_TAG }}
draft: false
generate_release_notes: true
prerelease: false
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/team-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function TeamSwitcher({

<DropdownMenuContent
align="start"
className="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"
side={isMobile ? 'bottom' : 'right'}
sideOffset={4}
>
Expand Down
Loading