Coder Social home page Coder Social logo

plutotcool / release Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 172 KB

🔖 - GitHub Action to automatically release packages using lerna or semantic-release

License: MIT License

JavaScript 6.45% TypeScript 93.55%
github-actions release lerna semantic-release actions

release's Introduction

Release Action

GitHub Action to automatically release packages using lerna or semantic-release.

  • Automatically bump packages version using semantic-release (or lerna which also relies on semantic-release)
  • Create releases on GitHub
  • Publish to GitHub and NPM registries

Publishing on package registries is skipped if there is not any package.json or if its private field is set to true.

Publishing on GitHub registry is skipped if the package name is not scoped with the GitHub owner name.

Publishing on NPM registry is skipped if no NPM token is provided.

Usage

In .github/workflows/release.yml:

on:
  push:
    branches:
    - main

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: 14
    - run: yarn
    - run: yarn build
    - uses: plutotcool/release@v1
      with:
        github_token:  ${{ secrets.GITHUB_TOKEN }}
        npm_token: ${{ secrets.NPM_TOKEN }}

Inputs

github_token

string (required)

GitHub Token used to create the release on GitHub and publish on GitHub registry.

npm_token

string (optional)

NPM token with publish permission. If not provided, publishing to npm registry will be skipped.

publish

boolean (optional, default true)

Enable or disable publishing to package registries. When set to false, only releases are created on GitHub.

push

boolean (optional, default true)

Enable or disable pushing changes made by the action.

name

string (optional, default: 'github-actions[bot]')

User name to use when pushing to GitHub.

email

string (optional, default: 'github-actions[bot]@users.noreply.github.com')

Email to use when pushing to GitHub.

message

string (optional, default: 'ci: release')

Commit message to use when bumping package.json.

release's People

Contributors

juliendargelos avatar bastienrobert avatar

Stargazers

dexter dev avatar Simone Corsi avatar Constantine Genchevsky avatar Lucas Sagás avatar Alexandre Stapenhorst avatar Holegots avatar Luke Morales avatar Hugo Silva avatar nmccready avatar

Watchers

James Cloos avatar  avatar

Forkers

remixie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.