/npm-pre-release-packages-detection-action

GitHub Action which detects pre-release NPM packages

Primary LanguageJavaScriptMIT LicenseMIT

NPM pre-release packages check

What is it?

This action detects pre-release NPM packages for a given package file. Pre-release packages are often Alpha packages only to be used when developing however avoided when running production code. 

Code Quality Code Grade javscript-action status

How to use it?

Configure the GitHub action

Inputs

package-file-full-path

Required The full path pointing to the package file. Example "./package.json".

Outputs

found-pre-release

Boolean indicator used to tell that a pre-release packages was found.

Example usage

jobs:
    precheck:
        runs-on: ubuntu-latest
        steps:
            - uses: kevin-bronsdijk/npm-pre-release-packages-detection-action@v1.0.0
              id: npmprerelease
              with:
                  package-file-full-path: './package.json'
            - run: echo "result ${{ steps.npmprerelease.outputs.found-pre-release }}"

Contact and bug reports

Feel free to open an issue on this GitHub project.