Skip to content

aboutbits/github-actions-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions Node

A collection of GitHub actions for Node projects.

Actions

Setup Node

This action will set up Node.js.

Example

  - uses: aboutbits/github-actions-node/setup@v3
    with:
      node-version: 22

Inputs

The following inputs can be used as step.with keys:

Name Required/Default Description
working-directory . The working directory of the action
node-version 22 The Node.js version that should be set up
registry-url (empty) Optional registry to set up for auth

Setup Node and Install Dependencies

This action will set up Node.js and install all NPM dependencies.

Example

  - uses: aboutbits/github-actions-node/setup-and-install@v3
    with:
      node-version: 22

Inputs

The following inputs can be used as step.with keys:

Name Required/Default Description
working-directory . The working directory of the action
node-version 22 The Node.js version that should be set up
registry-url (empty) Optional registry to set up for auth
registry-token (empty) Optional registry token for auth

Build and Release Package

This action will build and release an NPM package.

Example

  - uses: aboutbits/github-actions-node/build-and-publish-package@v3
    with:
      version: AboutBits
      git-user-email: [email protected]

Inputs

The following inputs can be used as step.with keys:

Name Required/Default Description
working-directory . The working directory of the action
node-version 22 The Node.js version that should be set up
registry-url (empty) Optional registry url for auth
registry-token (empty) Optional registry token for auth
increment required The version increment type (major, minor, patch, prerelease, premajor, preminor, prepatch)
preid (empty) The prerelease identifier (only required if increment is premajor, preminor or prepatch)

Outputs

The following outputs are forwarded from the underlying actions:

Name Description
name The package name of the package.json file.
version The new package version.

Build & Publish

To build and publish the action, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.

Information

About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.

Support

For support, please contact [email protected].

Credits

License

The MIT License (MIT). Please see the license file for more information.

About

GitHub Actions - Node

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •