A Node.js GitHub Actions addon for simple-release.
# pnpm
pnpm add @simple-release/node-gha
# yarn
yarn add @simple-release/node-gha
# npm
npm i @simple-release/node-ghaimport { 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:
latestbranch from the current release commit.v{major}branch from the builtlateststate.v{version}tag from the builtlateststate.
For comprehensive guides and API reference, visit the documentation website.