fix: beta release (#6697)

This commit is contained in:
Louis Lam 2026-01-13 14:15:39 +08:00 committed by GitHub
parent 4c2a3b9d63
commit d61cbbe56d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,15 +4,15 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: "Beta version number (e.g., 2.0.0-beta.0)" description: "Beta version number (e.g., 2.1.0-beta.2)"
required: true required: true
type: string type: string
previous_version: previous_version:
description: "Previous version tag for changelog (e.g., 1.23.0)" description: "Previous version tag for changelog (e.g., 2.1.0-beta.1)"
required: true required: true
type: string type: string
dry_run: dry_run:
description: "If true, the docker image will not be pushed to registries. PR will still be created." description: "Dry Run (The docker image will not be pushed to registries. PR will still be created.)"
required: false required: false
type: boolean type: boolean
default: false default: false
@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with: with:
ref: master ref: master
persist-credentials: false persist-credentials: true
fetch-depth: 0 # Fetch all history for changelog generation fetch-depth: 0 # Fetch all history for changelog generation
- name: Set up Node.js - name: Set up Node.js
@ -45,7 +45,6 @@ jobs:
# Delete local release branch if it exists # Delete local release branch if it exists
git branch -D release || true git branch -D release || true
git checkout -b release git checkout -b release
git push origin release --force
- name: Install dependencies - name: Install dependencies
run: npm clean-install --no-fund run: npm clean-install --no-fund