Skip to content

Latest commit

 

History

History

node-gha

Folders and files

README.md

@simple-release/node-gha

ESM-only package NPM version Node version Dependencies status Install size Build status Coverage status

A Node.js GitHub Actions addon for simple-release.

Install

# pnpm
pnpm add @simple-release/node-gha
# yarn
yarn add @simple-release/node-gha
# npm
npm i @simple-release/node-gha

Usage

import { Releaser } from '@simple-release/core'
import { GithubHosting } from '@simple-release/github'
import { NodeGhaProject } from '@simple-release/node-gha'

await new Releaser({
  project: new NodeGhaProject(),
  hosting: new GithubHosting({
    token: process.env.GITHUB_TOKEN
  })
})
  .bump()
  .commit()
  .push()
  .publish({
    build: 'pnpm install --prod',
    files: [
      'node_modules',
      'dist'
    ]
  })
  .release()
  .run()

NodeGhaProject publishes a built Node.js GitHub Action state by creating or updating:

  • latest branch from the current release commit.
  • v{major} branch from the built latest state.
  • v{version} tag from the built latest state.

Documentation

For comprehensive guides and API reference, visit the documentation website.