Coder Social home page Coder Social logo

action-release-action's Introduction

Release Action

Release GitHub action with semantic-release.

All assets built in the dist dir for branch <branch> are released in the branch release/<branch>. Git tags vx.x.x and vx are also created for the default branch.

Preset used is conventional-changelog-conventionalcommits.

tag version format

Warning! Do no mix'n'match tag formats within a single repo!

If the latest release in a repo is 3.2.0 and you change the format to prefix the numbers with a v then the next release will be v1.0.0. i.e. There will be a parallel release channel... maybe this is what you want?

More information can be found here

An optional tag-prefix input can be provided to control the format of the tag created.

More information can be found here

The following example will create a release in the format X.Y.Z

      - uses: playstudios/action-release-action@v1
        with:
          repo-token: ${{ github.token }}
          tag-prefix: ''

The following example will create a release in the format mysuperrelease-X.Y.Z

      - uses: playstudios/action-release-action@v1
        with:
          repo-token: ${{ github.token }}
          tag-prefix: 'mysuperrelease-'

If tag-prefix is not included, the release format is vX.Y.Z

Full example using default tag format

name: Release
on:
  push:
    branches-ignore:
      - release/**

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Build
        run: |
          echo ::group::install deps
          npm ci
          echo ::group::lint
          npm run lint
          echo ::group::test
          npm test
          echo ::group::pack
          npm run pack
      - uses: playstudios/action-release-action@v1
        with:
          repo-token: ${{ github.token }}

To clean up obsolete release branches:

name: Clean
on: delete

jobs:
  clean-release:
    runs-on: ubuntu-latest
    steps:
      - uses: playstudios/action-release-action@v1
        with:
          repo-token: ${{ github.token }}
          clean: true

action-release-action's People

Contributors

n3wt0n avatar dayyeung avatar hungran avatar georgestoicapsa avatar gai6948 avatar dependabot[bot] avatar alex-mozejko avatar angelomao avatar

Stargazers

 avatar

Watchers

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