Skip to content

Commit

Permalink
chore: fix promote-lts capability
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Feb 24, 2024
1 parent 80c06ca commit 239e904
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_promote-lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
- name: Publish with script
run: bun release exec promote --v=${{ github.event.inputs.version }} --t=${{ github.event.inputs.channel }} -u ${{ github.event.inputs.update-branch }}
run: bun release exec promote --v=${{ github.event.inputs.version }} --t=${{ github.event.inputs.channel }} --u=${{ github.event.inputs.update-branch }}
env:
FORCE_COLOR: 2
CI: true
Expand Down
2 changes: 1 addition & 1 deletion release/core/promote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { question } from '../publish/steps/confirm-strategy';

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

if (config.full.get('help')) {
Expand Down
1 change: 0 additions & 1 deletion release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const COMMANDS = {
promote: promoteToLTS,
default: executePublish,
exec: async (args: string[]) => {
args.shift();
const cmd = args.shift();

if (!cmd) {
Expand Down

0 comments on commit 239e904

Please sign in to comment.