Skip to content

@actalog/node-pkg-cd

Actions
Automates Node.js package publishing to npm registry
v1.0.0
Latest
Star (0)

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:

name: CD

on:
  push:
    branches:
      - main

jobs:
  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.

@actalog/node-pkg-cd is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Automates Node.js package publishing to npm registry
v1.0.0
Latest

@actalog/node-pkg-cd is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.