Skip to content
package

GitHub Action

Npm pre-release detection

v1.1.0 Latest version

Npm pre-release detection

package

Npm pre-release detection

This action detects pre-release Npm packages for a given package file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Npm pre-release detection

uses: Kevin-Bronsdijk/npm-pre-release-packages-detection-action@v1.1.0

Learn more about this action in Kevin-Bronsdijk/npm-pre-release-packages-detection-action

Choose a version

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.