🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@simple-release/github-action

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simple-release/github-action

A simple-release api for github action.

2.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

@simple-release/github-action

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

A simple-release api for github action.

Install

# pnpm
pnpm add @simple-release/github-action
# yarn
yarn add @simple-release/github-action
# npm
npm i @simple-release/github-action

Usage

import { getOctokit } from '@actions/github'
import { load } from '@simple-release/config'
import { ReleaserGithubAction, ifReleaseCommit } from '@simple-release/github-action'

const {
  project,
  releaser,
  ...options
} = await load({
  config: true,
  project: true
})
const action = await new ReleaserGithubAction({
  project,
  octokit: getOctokit(token),
  ...releaser
})

// Create pull request with version bump
action
  .setOptions(options)
  .checkout()
  .fetchOptions()
  .bump()
  .commit()
  .push()
  .pullRequest()
  .run()

// Publish release and project
action
  .setOptions(options)
  .tag()
  .push()
  .release()
  .publish()
  .run(ifReleaseCommit)

// Run all steps to create a pull request with version bump
action
  .setOptions(options)
  .runPullRequestAction()

// Run all steps to release project
action
  .setOptions(options)
  .runReleaseAction()

// Detect action by commit type and run appropriate steps
action
  .setOptions(options)
  .runAction()

fethchOptions

You can pass additional options to releaser via comment in your pull request. Your comment should start with !simple-release/set-options and contain JSON object with options. For example:

!simple-release/set-options

```json
{
  "bump": {
    "prerelease": "alpha"
  }
}
```

To fetch and parse comments you should use fetchOptions step after checkout step.

Keywords

simple-release

FAQs

Package last updated on 09 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts