Skip to content

Commit

Permalink
misc: add release input for user
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed Jan 5, 2024
1 parent d24881f commit a5285d0
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ pnpm pre-local && pnpm install
pnpm dev
# After dev before submitting PRs (Update workspace to actual dependencies), `pnpm install` for making sure lockfile is correct.
pnpm post-local && pnpm install
# Release package with OTP (Temporary Use)
export NPM_OTP="123456" && pnpm release
# Release package
pnpm release
```

## Inspiration
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"url": "https://github.com/thaitype/nammatham.git"
},
"devDependencies": {
"@inquirer/prompts": "^3.3.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.55.0",
Expand Down
206 changes: 204 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions scripts/input-option.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { select } from '@inquirer/prompts';

type SelectOption = Parameters<typeof select>[0];

export const releaseTypeSelectOption: SelectOption = {
message: 'Select release type',
choices: [
{
name: 'major',
value: 'major',
description: 'major release',
},
{
name: 'minor',
value: 'minor',
description: 'minor release',
},
{
name: 'patch',
value: 'patch',
description: 'patch release',
},
{
name: 'alpha',
value: 'alpha',
description: 'alpha release',
},
]
};
Loading

0 comments on commit a5285d0

Please sign in to comment.