Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actalog/node-pkg-cd
📦 Automates the Continuous Deployment (CD) process for Node.js packages to the npm registry
https://github.com/actalog/node-pkg-cd
github node npm package
Last synced: about 2 months ago
JSON representation
📦 Automates the Continuous Deployment (CD) process for Node.js packages to the npm registry
- Host: GitHub
- URL: https://github.com/actalog/node-pkg-cd
- Owner: actalog
- License: unlicense
- Created: 2024-10-12T02:38:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T16:15:42.000Z (about 2 months ago)
- Last Synced: 2024-12-06T14:07:18.336Z (about 2 months ago)
- Topics: github, node, npm, package
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node package CD
GitHub Action to automate the Continuous Deployment (CD) process for Node.js packages to the npm registry.
## Features
- Automatically sets up the desired Node.js version.
- Installs dependencies using `npm ci` or `npm install`.
- Builds the package if a `build` script exists in `package.json`.
- Prepares the package for publishing.
- Publishes the package to the npm registry.## Inputs
| Name | Description | Required | Default |
|--------------------|----------------------------------------------------|----------|------------------------------|
| `node-auth-token` | npm authentication token | Yes | N/A |
| `node-version` | Node.js version to use | No | `20` |
| `registry-url` | npm registry URL | No | `https://registry.npmjs.org` |## Usage
Here's an example of how to use this action in a GitHub workflow:
```yaml
name: CDon:
push:
branches:
- mainjobs:
node-pkg-cd:
name: Node package CD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actalog/node-pkg-cd@v1
with:
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
node-version: 20
```## License
This project is licensed under [The Unlicense](LICENSE).