1.6.2 #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |