A collection of GitHub actions for Node projects.
This action will set up Node.js.
- uses: aboutbits/github-actions-node/setup@v3
with:
node-version: 22The 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 |
This action will set up Node.js and install all NPM dependencies.
- uses: aboutbits/github-actions-node/setup-and-install@v3
with:
node-version: 22The 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 |
This action will build and release an NPM package.
- uses: aboutbits/github-actions-node/build-and-publish-package@v3
with:
version: AboutBits
git-user-email: [email protected]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) |
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. |
To build and publish the action, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.
About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.
For support, please contact [email protected].
The MIT License (MIT). Please see the license file for more information.