GitHub Actions to check if it can be published to npm.
MIT License
Read this in other languages: English, 日本語.
npm に公開可能かチェックするGitHub Actions
です。
このアクションは can-npm-publish を使用します。
例:.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
name | description | default | required | e.g. |
---|---|---|---|---|
PACKAGE_PATH | ディレクトリ または package.json へのパス | assets/package.json |
||
VERBOSE | エラーの詳細を表示するかどうか | true |
false |
|
GITHUB_TOKEN | アクセストークン | ${{github.token}} |
true | ${{secrets.ACCESS_TOKEN}} |
name | description | e.g. |
---|---|---|
result | action result (passed or failed) | passed |
eventName | action |
---|---|
pull_request, pull_request_target | opened, reopened, synchronize |