can-npm-publish-action

GitHub Actions to check if it can be published to npm.

MIT License

Stars
3
Committers
2

Can npm publish action

Read this in other languages: English, 日本語.

npm に公開可能かチェックするGitHub Actionsです。 このアクションは can-npm-publish を使用します。

Table of Contents

使用方法

例:.github/workflows/check-publish.yml

on: pull_request

name: Check npm publish

jobs:
  checkPublish:
    name: Check npm publish
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: technote-space/can-npm-publish-action@v1

スクリーンショット

Passed

Failed

オプション

name description default required e.g.
PACKAGE_PATH ディレクトリ または package.json へのパス assets/package.json
VERBOSE エラーの詳細を表示するかどうか true false
GITHUB_TOKEN アクセストークン ${{github.token}} true ${{secrets.ACCESS_TOKEN}}

Outputs

name description e.g.
result action result (passed or failed) passed

Action イベント詳細

対象イベント

eventName action
pull_request, pull_request_target opened, reopened, synchronize

Author

GitHub (Technote) Blog