Coder Social home page Coder Social logo

michaelbausor / releasetool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googleapis/releasetool

0.0 2.0 0.0 205 KB

A utility for release Google client libraries across a variety of languages.

License: Apache License 2.0

Shell 3.66% Python 96.34%

releasetool's Introduction

Releasetool (for client libraries)

This tool helps create releases for cloud client libraries.

Presently, this works for Python, Node.js, and Ruby. However, it's designed in such a way that it could easily be used for other languages.

Installation

Requirements:

  • Python 3.6 or Python 3.7
  • pip

We recommend following this guide for installing both Python 3 and pip.

Install releasetool using pip:

python3 -m pip install --user --upgrade gcp-releasetool

Usage

Packages are published in two phases. First, a PR is created to update CHANGELOG.md and the version number. Second, once the PR is merged the merge commit is tagged and CI publishes the package.

To start the process of releasing use releasetool start from the directory of the client you want to publish, for example:

git clone [email protected]:GoogleCloudPlatform/google-cloud-python.git
cd google-cloud-python
cd bigquery
releasetool start

This will create a PR.

If the PR has a autorelease: pending label:

Upon approval and merging, autorelease will pick up the PR and run releasetool tag and release the package to their respective package managers. Autorelease will comment on the release PR with the status of the release. Example PR

Otherwise:

Once the PR has been approved and merged, you can run releasetool tag from anywhere in the repository to tag the commit and start CI.

git fetch origin master
git checkout origin/master
releasetool tag

Resetting the GitHub Token

If you need to change the GitHub API token associated with releasetool, run releasetool reset-config. This will delete the existing token. The next time you run releasetool start you will be prompted to enter a new token.

releasetool's People

Contributors

theacodes avatar busunkim96 avatar jkwlui avatar theroyaltnetennba avatar chingor13 avatar crwilcox avatar quartzmo avatar justinbeckwith avatar tswast avatar callmehiphop avatar jba avatar kjin avatar

Watchers

James Cloos avatar  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.