Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Support package manager(npm/yarn/pnpm) #353

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

Khsmty
Copy link
Contributor

@Khsmty Khsmty commented Oct 18, 2023

Pull Request detail

Fix or Add/Remove in this PR/このプルリクエストでやったこと

  • package_manager オプションを設け、yarn と pnpm に対応しました。

Pros and Cons/メリットとデメリット

メリット

  • yarn や pnpm を使用しているリポジトリで The `npm ci` command can only install with an existing package-lock.json ... エラーが発生して止まってしまう状態だったが、このオプションにより問題なく textlint を使用できるようになった。

デメリット
なし

Test/動作確認

Test item list up with checkbox, checked after tested./チェックボックス式にし、確認後チェックする。

  • Test / runner / textlint (github-check) (pull_request)
  • reviewdog / runner / shellcheck (pull_request)
  • Test / runner / textlint (github-pr-check) (pull_request)
  • reviewdog / runner / misspell (pull_request)
  • Test / runner / textlint (github-pr-review) (pull_request)
  • reviewdog / runner / alex (pull_request)

@tsuyoshicho
Copy link
Owner

後で確認します

Copy link
Owner

@tsuyoshicho tsuyoshicho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Khsmty
PRありがとうございました。
確認しました。

script.sh Outdated
Comment on lines 27 to 28
echo 'npm ci start'
npm ci
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デフォルト値を持せるようになるわけなので、それ以外についてはエラーログを出してexit 1にすることにしましょうか
exit前に

echo '::endgroup::'

もわすれずにおねがいします。(なくても平気かもしれませんが)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exit するようにしました!

script.sh Show resolved Hide resolved
@tsuyoshicho tsuyoshicho added enhancement New feature or request bump:minor Bump up minor version labels Oct 18, 2023
@tsuyoshicho tsuyoshicho changed the title yarn と pnpm に対応 feat: Add Support package manager(npm/yarn/pnpm) Oct 18, 2023
@tsuyoshicho tsuyoshicho merged commit d35da75 into tsuyoshicho:master Oct 18, 2023
8 checks passed
@tsuyoshicho
Copy link
Owner

tsuyoshicho commented Oct 18, 2023

ありがとうございます、マージ&リリースします。

しました
https://github.com/tsuyoshicho/action-textlint/releases/tag/v3.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump:minor Bump up minor version enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants