Remove beta release workflow (#10959)

Remove beta release workflow and simplify stable release

Beta release is no longer used. Remove the workflow and simplify the
stable release to only support direct releases with a required version
input.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nate Sesti 2026-03-01 14:14:19 -08:00 • committed by GitHub
parent 1c561f0eaf
commit e24ce48c24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 267 deletions

View file

@ -1,115 +0,0 @@
name: Beta Release
on:
schedule:
# Run every day at 9am UTC
- cron: "0 9 * * *"
workflow_dispatch:
# Allow manual triggering
permissions:
contents: write
issues: write
pull-requests: write
id-token: write # Required for npm OIDC trusted publishing
jobs:
beta-release:
name: Beta Release
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
- name: Setup packages
uses: ./.github/actions/setup-packages
- name: Setup core component
uses: ./.github/actions/setup-component
with:
component: core
include-root: true
- name: Build core
run: |
cd core
npm run build
- name: Update npm for OIDC trusted publishing
run: npm install -g npm@latest
- name: Install CLI dependencies
working-directory: extensions/cli
run: npm ci
- name: Get current version
id: get_version
working-directory: extensions/cli
run: |
# Get the latest version from package.json or npm registry
CURRENT_VERSION=$(node -p "require('./package.json').version")
if [[ "$CURRENT_VERSION" == "0.0.0-dev" ]]; then
# If it's dev version, get latest from npm registry
LATEST_VERSION=$(npm view @continuedev/cli version --silent 2>/dev/null || echo "0.0.0")
echo "Using latest npm version: $LATEST_VERSION"
CURRENT_VERSION=$LATEST_VERSION
fi
# Create beta version with current date
DATE_SUFFIX=$(date -u +%Y%m%d)
BETA_VERSION="${CURRENT_VERSION}-beta.${DATE_SUFFIX}"
# Check if this version already exists on npm
if npm view @continuedev/cli@$BETA_VERSION version --silent >/dev/null 2>&1; then
echo "Version $BETA_VERSION already exists, adding timestamp"
# Add hour and minute to make it unique
TIMESTAMP_SUFFIX=$(date -u +%Y%m%d.%H%M)
BETA_VERSION="${CURRENT_VERSION}-beta.${TIMESTAMP_SUFFIX}"
echo "Using timestamped version: $BETA_VERSION"
fi
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
echo "beta_version=$BETA_VERSION" >> $GITHUB_OUTPUT
echo "date_suffix=$DATE_SUFFIX" >> $GITHUB_OUTPUT
- name: Update package.json for beta
working-directory: extensions/cli
run: |
# Update version in package.json
npm version ${{ steps.get_version.outputs.beta_version }} --no-git-tag-version
- name: Build
working-directory: extensions/cli
run: npm run build
- name: Publish beta to npm
working-directory: extensions/cli
run: |
npm publish --tag beta --provenance
echo "Published beta version: ${{ steps.get_version.outputs.beta_version }}"
- name: Create beta release on GitHub
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: |
# Create a git tag for the beta
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag "v${{ steps.get_version.outputs.beta_version }}"
git push origin "v${{ steps.get_version.outputs.beta_version }}"
# Create GitHub release
gh release create "v${{ steps.get_version.outputs.beta_version }}" \
--title "CLI Beta Release v${{ steps.get_version.outputs.beta_version }}" \
--notes "Daily beta release for testing. This version will be promoted to stable after 7 days if no critical issues are found." \
--prerelease

View file

@ -3,21 +3,9 @@ name: Stable Release
on:
workflow_dispatch:
inputs:
release_type:
description: "Release type"
required: true
type: choice
options:
- "promote-beta"
- "direct-stable"
default: "promote-beta"
beta_version:
description: "Specific beta version to promote (required if release_type is 'promote-beta')"
required: false
type: string
stable_version:
description: "Version for direct stable release (e.g., 1.2.3) - required if release_type is 'direct-stable'"
required: false
description: "Version for stable release (e.g., 1.2.3)"
required: true
type: string
permissions:
@ -47,103 +35,10 @@ jobs:
- name: Update npm for OIDC trusted publishing
run: npm install -g npm@latest
- name: Validate inputs
run: |
RELEASE_TYPE="${{ inputs.release_type || 'promote-beta' }}"
echo "Release type: $RELEASE_TYPE"
if [[ "$RELEASE_TYPE" == "direct-stable" ]]; then
if [[ -z "${{ inputs.stable_version }}" ]]; then
echo "Error: stable_version is required for direct-stable release type"
exit 1
fi
echo "Direct stable release version: ${{ inputs.stable_version }}"
elif [[ "$RELEASE_TYPE" == "promote-beta" ]]; then
echo "Beta promotion release (beta_version: ${{ inputs.beta_version }})"
else
echo "Error: Invalid release type: $RELEASE_TYPE"
exit 1
fi
- name: Find beta version to promote
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
id: find_beta
working-directory: extensions/cli
run: |
if [[ -n "${{ inputs.beta_version }}" ]]; then
# Manual input provided
BETA_VERSION="${{ inputs.beta_version }}"
echo "Using manually specified beta version: $BETA_VERSION"
else
# Find beta version that's at least 7 days old
SEVEN_DAYS_AGO=$(date -u -d '7 days ago' +%Y%m%d)
echo "Looking for beta versions from $SEVEN_DAYS_AGO or earlier"
# Get all beta versions from npm
BETA_VERSIONS=$(npm view @continuedev/cli versions --json | jq -r '.[] | select(contains("-beta."))' | sort -V)
CANDIDATE_VERSION=""
for version in $BETA_VERSIONS; do
# Extract date from beta version (format: x.y.z-beta.YYYYMMDD)
if [[ $version =~ -beta\.([0-9]{8}) ]]; then
BETA_DATE="${BASH_REMATCH[1]}"
if [[ $BETA_DATE -le $SEVEN_DAYS_AGO ]]; then
CANDIDATE_VERSION=$version
fi
fi
done
if [[ -z "$CANDIDATE_VERSION" ]]; then
echo "No beta version found that is at least 7 days old"
exit 1
fi
BETA_VERSION=$CANDIDATE_VERSION
echo "Selected beta version for promotion: $BETA_VERSION"
fi
# Extract base version (remove -beta.YYYYMMDD suffix)
STABLE_VERSION=$(echo "$BETA_VERSION" | sed 's/-beta\.[0-9]\{8\}//')
echo "beta_version=$BETA_VERSION" >> $GITHUB_OUTPUT
echo "stable_version=$STABLE_VERSION" >> $GITHUB_OUTPUT
- name: Set version for direct stable release
if: ${{ inputs.release_type == 'direct-stable' }}
id: direct_stable
run: |
echo "stable_version=${{ inputs.stable_version }}" >> $GITHUB_OUTPUT
- name: Download and verify beta package
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
working-directory: extensions/cli
run: |
# Download the specific beta version
npm pack @continuedev/cli@${{ steps.find_beta.outputs.beta_version }}
# Extract and verify the package
PACKAGE_FILE=$(ls continuedev-cli-*.tgz)
tar -xzf "$PACKAGE_FILE"
echo "Beta package contents verified"
ls -la package/
- name: Prepare package for beta promotion
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
working-directory: extensions/cli
run: |
# Copy the beta package contents
cp -r package/* .
# Update version to stable (remove beta suffix)
npm version ${{ steps.find_beta.outputs.stable_version }} --no-git-tag-version
- name: Setup packages (for direct stable release)
if: ${{ inputs.release_type == 'direct-stable' }}
- name: Setup packages
uses: ./.github/actions/setup-packages
- name: Setup core component (for direct stable release)
if: ${{ inputs.release_type == 'direct-stable' }}
- name: Setup core component
uses: ./.github/actions/setup-component
with:
component: core
@ -154,68 +49,42 @@ jobs:
cd core
npm run build
- name: Prepare package for direct stable release
if: ${{ inputs.release_type == 'direct-stable' }}
- name: Install CLI dependencies
working-directory: extensions/cli
run: |
# Install dependencies for direct build
npm ci
run: npm ci
# Update version to the specified stable version
npm version ${{ inputs.stable_version }} --no-git-tag-version
- name: Update version
working-directory: extensions/cli
run: npm version ${{ inputs.stable_version }} --no-git-tag-version
- name: Build (verification step)
- name: Build
working-directory: extensions/cli
run: npm run build
- name: Run tests (verification step)
- name: Run tests
working-directory: extensions/cli
run: npm test
- name: Set final version
id: final_version
run: |
if [[ "${{ inputs.release_type || 'promote-beta' }}" == "direct-stable" ]]; then
STABLE_VERSION="${{ steps.direct_stable.outputs.stable_version }}"
RELEASE_NOTES="Direct stable release from main branch. Version $STABLE_VERSION built and published directly from the latest main branch."
else
STABLE_VERSION="${{ steps.find_beta.outputs.stable_version }}"
RELEASE_NOTES="Stable release promoted from tested beta version ${{ steps.find_beta.outputs.beta_version }}. This version has been thoroughly tested in beta for at least 7 days."
fi
echo "stable_version=$STABLE_VERSION" >> $GITHUB_OUTPUT
echo "release_notes=$RELEASE_NOTES" >> $GITHUB_OUTPUT
- name: Publish stable to npm
- name: Publish to npm
working-directory: extensions/cli
run: |
npm publish --tag latest --provenance
echo "Published stable version: ${{ steps.final_version.outputs.stable_version }}"
echo "Published version: ${{ inputs.stable_version }}"
- name: Create stable release on GitHub
- name: Create release on GitHub
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: |
# Create a git tag for the stable release
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag "v${{ steps.final_version.outputs.stable_version }}"
git push origin "v${{ steps.final_version.outputs.stable_version }}"
git tag "v${{ inputs.stable_version }}"
git push origin "v${{ inputs.stable_version }}"
# Create GitHub release
gh release create "v${{ steps.final_version.outputs.stable_version }}" \
--title "CLI Stable Release v${{ steps.final_version.outputs.stable_version }}" \
--notes "${{ steps.final_version.outputs.release_notes }}" \
gh release create "v${{ inputs.stable_version }}" \
--title "CLI Release v${{ inputs.stable_version }}" \
--notes "Release v${{ inputs.stable_version }} built and published from the main branch." \
--latest
- name: Update GitHub release notes for beta promotion
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: |
# Mark the original beta release as superseded
gh release edit "v${{ steps.find_beta.outputs.beta_version }}" \
--notes "This beta version has been promoted to stable as v${{ steps.final_version.outputs.stable_version }}."
- name: Publish Blueprints to Runloop
env:
RUNLOOP_API_KEY: ${{ secrets.RUNLOOP_API_KEY }}
@ -224,7 +93,7 @@ jobs:
local name=$1
local template=$2
echo "Publishing blueprint '$name' to Runloop API for version ${{ steps.final_version.outputs.stable_version }}"
echo "Publishing blueprint '$name' to Runloop API for version ${{ inputs.stable_version }}"
# Use blueprint configuration from template file
cp ".github/workflows/$template" blueprint.json
@ -244,7 +113,6 @@ jobs:
echo "✅ Successfully published blueprint '$name' to Runloop API"
echo "Response: $response_body"
# Extract blueprint ID if available
blueprint_id=$(echo "$response_body" | jq -r '.id // empty')
if [[ -n "$blueprint_id" ]]; then
echo "Blueprint ID: $blueprint_id"