Skip to content

Commit 239e904

Browse files
committed
chore: fix promote-lts capability
1 parent 80c06ca commit 239e904

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/release_promote-lts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
4848
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
4949
- name: Publish with script
50-
run: bun release exec promote --v=${{ github.event.inputs.version }} --t=${{ github.event.inputs.channel }} -u ${{ github.event.inputs.update-branch }}
50+
run: bun release exec promote --v=${{ github.event.inputs.version }} --t=${{ github.event.inputs.channel }} --u=${{ github.event.inputs.update-branch }}
5151
env:
5252
FORCE_COLOR: 2
5353
CI: true

release/core/promote/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { question } from '../publish/steps/confirm-strategy';
1111

1212
export async function promoteToLTS(args: string[]) {
1313
// get user supplied config
14-
const config = await parseRawFlags(args.slice(1), promote_flags_config);
14+
const config = await parseRawFlags(args, promote_flags_config);
1515
const gitTag: GIT_TAG = `v${config.full.get('version') as SEMVER_VERSION}`;
1616

1717
if (config.full.get('help')) {

release/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const COMMANDS = {
1919
promote: promoteToLTS,
2020
default: executePublish,
2121
exec: async (args: string[]) => {
22-
args.shift();
2322
const cmd = args.shift();
2423

2524
if (!cmd) {

0 commit comments

Comments
 (0)