Skip to content

dramancompany/branch-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Branch Guard

  • This action makes sure the current branch tries to merge into the right base branch on pull request
  • What's right is based on git-flow branching strategy

Inputs

Name Required Description Default
githubToken Github Token that has access to repository -
mainBranch Branch name for production releases "main"
devBranch Branch name for development "develop"
featureBranch Branch name prefix for feature "feature"
releaseBranch Branch name prefix for release "release"
hotfixBranch Branch name prefix for hotfix "hotfix"
prefixSeparator Branch name prefix separator "/"

Example usage

on: [pull_request]

jobs:
  check_branches_on_pr:
    runs-on: ubuntu-latest
    name: Check Branches on PR
    steps:
      - name: Check Branches on PR
        uses: dramancompany/branch-guard@v1.0.0
        with:
          githubToken: ${{ secrets.GITHUB_TOKEN }}

배포 순서

1. package.json의 버전 수정

2. 빌드

$ pnpm build

3. main 브랜치에 merge 혹은 push

4. 버전 태그 생성

$ git tag -am "v1.0.0" v1.0.0
$ git push --follow-tags

5. Github Release 생성

image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published