Skip to content

[skip deploy] - (v1.6.2) #12

[skip deploy] - (v1.6.2)

[skip deploy] - (v1.6.2) #12

name: Publish GitHub Release
on:
push:
branches:
- main
jobs:
publish:
# 커밋 메시지가 버전 범핑 포맷([skip deploy] - (v...)) 일 때만 실행
if: "contains(github.event.head_commit.message, '[skip deploy] - (v')"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install simple-git semver @actions/github @actions/core dotenv
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# --release 플래그를 사용하여 릴리즈 등록 모드로 실행
run: node scripts/release.js --release