Skip to content
Merged
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-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ permissions:
contents: write
id-token: write

env:
RELEASE_VERSION: 2026.2.0

jobs:
verify:
runs-on: ubuntu-latest
Expand All @@ -36,6 +33,7 @@ jobs:
cache: pnpm
registry-url: https://registry.npmjs.org
- run: pnpm install --frozen-lockfile
- run: echo "RELEASE_VERSION=$(pnpm pkg get version | tr -d '\"')" >> "$GITHUB_ENV"
- run: test "$(pnpm pkg get version | tr -d '\"')" = "$RELEASE_VERSION"
- run: pnpm data:check
- run: pnpm build
Expand All @@ -60,6 +58,7 @@ jobs:
cache: pnpm
registry-url: https://registry.npmjs.org
- run: pnpm install --frozen-lockfile
- run: echo "RELEASE_VERSION=$(pnpm pkg get version | tr -d '\"')" >> "$GITHUB_ENV"
- run: pnpm changeset pre enter rc
- run: npm version "$RELEASE_VERSION-rc.${{ inputs.rc_number }}" --no-git-tag-version
- run: pnpm build
Expand All @@ -79,7 +78,14 @@ jobs:
if [ "$attempt" -lt 5 ]; then sleep 15; fi
done
exit 1
- run: gh release create "v$RELEASE_VERSION-rc.${{ inputs.rc_number }}" --repo "${{ github.repository }}" --prerelease --title "v$RELEASE_VERSION-rc.${{ inputs.rc_number }}" --generate-notes
- name: Create RC GitHub release if needed
run: |
tag="v$RELEASE_VERSION-rc.${{ inputs.rc_number }}"
if gh release view "$tag" --repo "${{ github.repository }}" >/dev/null 2>&1; then
echo "$tag already exists"
else
gh release create "$tag" --repo "${{ github.repository }}" --prerelease --title "$tag" --generate-notes
fi
env:
GH_TOKEN: ${{ github.token }}

Expand All @@ -99,6 +105,7 @@ jobs:
cache: pnpm
registry-url: https://registry.npmjs.org
- run: pnpm install --frozen-lockfile
- run: echo "RELEASE_VERSION=$(pnpm pkg get version | tr -d '\"')" >> "$GITHUB_ENV"
- run: test "$(pnpm pkg get version | tr -d '\"')" = "$RELEASE_VERSION"
- run: pnpm build
- name: Publish stable if needed
Expand All @@ -116,6 +123,13 @@ jobs:
if [ "$attempt" -lt 5 ]; then sleep 15; fi
done
exit 1
- run: gh release create "v$RELEASE_VERSION" --repo "${{ github.repository }}" --title "v$RELEASE_VERSION" --generate-notes
- name: Create stable GitHub release if needed
run: |
tag="v$RELEASE_VERSION"
if gh release view "$tag" --repo "${{ github.repository }}" >/dev/null 2>&1; then
echo "$tag already exists"
else
gh release create "$tag" --repo "${{ github.repository }}" --title "$tag" --generate-notes
fi
env:
GH_TOKEN: ${{ github.token }}
Loading