From 73354a7103de9056af2442e56c0d8533d12de9ac Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 31 Oct 2023 19:05:24 +0200 Subject: [PATCH] fix: lint --- .github/workflows/nodejs.yml | 1 + lib/prompts.js | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5c51153..dcd97e6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,6 +13,7 @@ jobs: - 16.x - 18.x - 20.x + - 21.x steps: - uses: actions/checkout@v3 - uses: oven-sh/setup-bun@v1 diff --git a/lib/prompts.js b/lib/prompts.js index 3b025f6..d0181a4 100644 --- a/lib/prompts.js +++ b/lib/prompts.js @@ -1,16 +1,17 @@ import enquirer from 'enquirer'; -import actions from 'enquirer/lib/combos.js'; import tryToCatch from 'try-to-catch'; import {choose as chooseCLI} from '@putout/cli-choose'; -const {Select, Confirm} = enquirer; +const {Confirm} = enquirer; export const choose = async () => { - return chooseCLI('What type of changes are you goint to publish 🎁 ?', [ + const choises = [ 'patch', 'minor', 'major', - ]); + ]; + + return await chooseCLI('What type of changes are you goint to publish 🎁 ?', choises); }; export const ask = async (name, version) => {