Skip to content

matzkoh/check-node-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test

matzkoh/check-node-version

This GitHub Action checks if commands like nodenv install will definitely succeed.

It checks the node-build repository, which is the source of the installation, and fails if the target version does not exist.

Examples

Basic

steps:
  - uses: actions/checkout@v4
    with:
      sparse-checkout: /.node-version
      sparse-checkout-cone-mode: false

  - uses: matzkoh/check-node-version@v1

Optional

steps:
  - uses: actions/checkout@v4
    with:
      sparse-checkout: /.node-version
      sparse-checkout-cone-mode: false

  - id: check-node-version
    continue-on-error: true # continue even if the node version is not yet released
    uses: matzkoh/check-node-version@v1
    with:
      node-version-path: .nvmrc # use a file other than `.node-version` if desired

  - run: echo ${{ steps.check-node-version.outcome == 'success' && 'released 😀' || 'not yet released 😢' }}

Inputs

See action.yml

Name Description Default Required
node-version-path Path to the file containing the node version to check .node-version
node-version Node version to check. If not specified, it will be read from file.

Outputs

See action.yml

Name Description
node-version Same as node-version input. Checked version.
node-build-version Latest release version of brew node-build formula used for checks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published