GithubHelp home page GithubHelp logo

isabella232 / action-monorepo-release-pr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metamask/action-monorepo-release-pr

0.0 0.0 0.0 142 KB

A GitHub Action for creating a monorepo release PR.

License: MIT License

JavaScript 1.74% Shell 0.86% TypeScript 97.40%

action-monorepo-release-pr's Introduction

MetaMask/action-monorepo-release-pr

Add the following Workflow File to your repository in the path .github/workflows/create-release-pr.yml

name: Create Monorepo Release Pull Request

on:
    workflow_dispatch:
        inputs:
            base-branch:
                description: 'The base branch for git operations and the pull request.'
                default: 'main'
                required: true
            release-type:
                description: 'A SemVer version diff, i.e. major, minor, patch, prerelease etc. Mutually exclusive with "release-version".'
                required: false
            release-version:
                description: 'A specific version to bump to. Mutually exclusive with "release-type".'
                required: false

jobs:
    monorepo-release-pr:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v2
              with:
                  # This is to guarantee that the most recent tag is fetched.
                  # This can be configured to a more reasonable value by consumers.
                  fetch-depth: 0
                  # We check out the specified branch, which will be used as the base
                  # branch for all git operations and the release PR.
                  ref: ${{ inputs.base-branch }}
            - name: Get Node.js version
              id: nvm
              run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
            - uses: actions/setup-node@v2
              with:
                  node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
            - uses: MetaMask/[email protected]
              env:
                  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
              with:
                  release-type: ${{ github.event.inputs.release-type }}
                  release-version: ${{ github.event.inputs.release-version }}

action-monorepo-release-pr's People

Contributors

gudahtt avatar rekmarks avatar

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.