Skip to content

Commit

Permalink
ci: release only on-demand
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Sep 9, 2024
1 parent 4a287e3 commit 7bdc161
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Check code quality"

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: Release new stable version (main)

on:
push:
branches: [main]
workflow_dispatch:
inputs:
bump:
type: choice
required: true
description: "Version part to release"
default: "patch"
options:
- patch
- minor
- major

concurrency: release-new-version

Expand Down Expand Up @@ -39,7 +48,7 @@ jobs:
git branch -u origin/main main
- name: "Increase build versions"
run: pnpm release --tag-prefix --commit-all
run: pnpm release --tag-prefix --commit-all --release-as ${{ inputs.bump }}

# Uncomment when we have a package to publish
- name: "Publish package"
Expand Down

0 comments on commit 7bdc161

Please sign in to comment.