Skip to content

Commit

Permalink
chore: testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Aug 31, 2023
1 parent 6a2f6e2 commit 6df0866
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
branches:
- main
workflow_dispatch:
inputs:
production_release:
description: "Production release?"
required: true
default: "true"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -158,7 +163,7 @@ jobs:
- name: Run build
run: npm run build

- name: Release
- name: release
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/prod_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Trigger Production Release

on:
workflow_dispatch:

permissions:
contents: write

jobs:
prod_release:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Merge main -> release
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
with:
type: now
from_branch: main
target_branch: release
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Merge release -> main
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
with:
type: now
from_branch: release
target_branch: main
message: Merge release back to main to get version increment [no ci]
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6df0866

Please sign in to comment.