From 4d1d2e67fd666dfdd116de66b64aca606367c250 Mon Sep 17 00:00:00 2001 From: Trey Turner Date: Thu, 3 Oct 2024 23:28:47 -0500 Subject: [PATCH] chore(main): enable release --- .github/workflows/commitlint.yaml | 1 + .github/workflows/release-publish.yaml | 16 +++++++++------- .../{build-test.yaml => test-build.yaml} | 10 ++++------ release-please-config.json | 4 +++- 4 files changed, 17 insertions(+), 14 deletions(-) rename .github/workflows/{build-test.yaml => test-build.yaml} (91%) diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index 091816d..e756e33 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -1,4 +1,5 @@ name: Lint commits + on: [push, pull_request] permissions: diff --git a/.github/workflows/release-publish.yaml b/.github/workflows/release-publish.yaml index 668b578..607491d 100644 --- a/.github/workflows/release-publish.yaml +++ b/.github/workflows/release-publish.yaml @@ -1,22 +1,23 @@ name: Release & Publish on: - workflow_dispatch: - # push: - # branches: - # - main + push: + branches: + - main jobs: - build-and-test: - uses: ./.github/workflows/build-test.yaml + test-and-build: + name: Test & Build main + uses: ./.github/workflows/test-build.yaml secrets: inherit permissions: contents: read id-token: write release-please: + name: Release Automation runs-on: ubuntu-latest - needs: [build-and-test] + needs: [test-and-build] steps: - uses: googleapis/release-please-action@v4 id: release @@ -35,6 +36,7 @@ jobs: packages-released: ${{ steps.get-packages-released.outputs.result }} publish: + name: Publish ${{ matrix.package }} if: ${{ needs.release-please.outputs.packages-released != '[]' }} runs-on: ubuntu-latest needs: [release-please] diff --git a/.github/workflows/build-test.yaml b/.github/workflows/test-build.yaml similarity index 91% rename from .github/workflows/build-test.yaml rename to .github/workflows/test-build.yaml index 1d8a681..8bc039b 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/test-build.yaml @@ -1,8 +1,6 @@ -name: Build & Test +name: Test & Build PR -on: - workflow_call: - pull_request: +on: [workflow_call, pull_request] concurrency: group: ${{ github.event.pull_request.number || github.ref || github.sha }} @@ -10,7 +8,7 @@ concurrency: jobs: check-and-test: - name: check-and-test-${{ matrix.package }} + name: Check & Test ${{ matrix.package }} runs-on: ubuntu-latest strategy: matrix: @@ -33,7 +31,7 @@ jobs: - run: bun test build: - name: build-${{ matrix.package }} + name: Build ${{ matrix.package }} runs-on: ubuntu-latest strategy: matrix: diff --git a/release-please-config.json b/release-please-config.json index 735e30c..746d75c 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -7,7 +7,9 @@ "plugins": ["node-workspace"], "separate-pull-requests": true, "packages": { - "packages/api-client": {} + "packages/api-client": { + "release-as": "1.0.12" + } }, "changelog-sections": [ { "type": "feat", "section": "Features" },