diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c1620e6..0fcb290 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -51,6 +51,7 @@ jobs: ${{ always() && ( github.event_name == 'push' || + github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository ) }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbdc850..aa46b37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,17 +14,23 @@ on: - v* # Make possible to run manually workflow_dispatch: - # warn before running manually - warning: - description: 'Should be run only for tags like `v*`' - required: true - type: boolean + inputs: + # warn before running manually + warning: + description: 'Should be run only for tags like `v*`' + required: false + type: boolean +# Make sure that only one release workflow runs at a time. +concurrency: + group: release jobs: release: name: Create NPM and GitHub release runs-on: ubuntu-latest + # Only run this job for v* tags + if: startsWith(github.ref, 'refs/tags/v') steps: - name: Check out the repository uses: actions/checkout@v3 @@ -84,7 +90,7 @@ jobs: ${{ always() && ( github.event_name == 'push' || - github.event.pull_request.head.repo.full_name == github.repository + github.event_name == 'workflow_dispatch' ) }} runs-on: ubuntu-latest