Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

changesets-github-release

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

changesets-github-release

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
850
increased by14.09%
Maintainers
1
Weekly downloads
 
Created
Source

changesets-github-release

Automatize publishing GitHub releases after every changesets publish

Installation

pnpm add -D changesets-github-release

or

yarn add -D changesets-github-release

or

npm install -D changesets-github-release

Usage

First it assumes the presence of the GITHUB_TOKEN environment variable (you also can create a local .env in the same folder of the package including it).

In your package.json add a postpublish scripts as it follows:

{
  "repository": {
    "type": "git",
    "url": "https://github.com/repo-owner/repo-name"
  },
  "scripts": {
    "postpublish": "gh-release"
  }
}

You also can specify the target GitHub repository using the "--repo" argument:

{
  "scripts": {
    "postpublish": "gh-release --repo repo-owner/repo-name"
  }
}

You also can specify the target GitHub repository using the GITHUB_REPO environment variable

.env

GITHUB_TOKEN=XXXXXX
GITHUB_REPO=repo-owner/repo-name
{
  "scripts": {
    "postpublish": "gh-release"
  }
}

Keywords

FAQs

Package last updated on 31 Jan 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc