diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index caeb7a9..9d191eb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,9 +9,15 @@ permissions: contents: write jobs: + # Run the verify workflow first and only publish if it succeeds + verify: + name: Verify + uses: ./.github/workflows/verify.yaml + # Based on https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions#node-project-configuration release: name: Release + needs: verify runs-on: ubuntu-latest environment: Production permissions: diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 2411601..921e1f1 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -1,11 +1,11 @@ -name: verify +name: Verify on: pull_request: branches: - master - workflow_dispatch: + workflow_call: jobs: verify: