Skip to content

Commit

Permalink
chore(ci): change to manual release job
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Oct 13, 2023
1 parent 8069749 commit 562754f
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Create Release

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
inputs:
release:
description: "Create new release"
type: choice
options:
- major
- minor
- patch

jobs:
build:
Expand All @@ -13,6 +19,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Update app version
run: |
npm version ${{ inputs.release }}
git push --follow-tags
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
Expand All @@ -33,6 +49,14 @@ jobs:
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
branch: develop
commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }}"
file_pattern: CHANGELOG.md

- name: Merge develop in main
uses: devmasx/merge-branch@master
with:
type: now
from_branch: develop
target_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 562754f

Please sign in to comment.