Skip to content

Commit

Permalink
chore(main): enable release (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
treyturner authored Oct 4, 2024
1 parent ca34c6f commit c807593
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Lint commits

on: [push, pull_request]

permissions:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
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 }}
cancel-in-progress: true

jobs:
check-and-test:
name: check-and-test-${{ matrix.package }}
name: Check & Test ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -33,7 +31,7 @@ jobs:
- run: bun test

build:
name: build-${{ matrix.package }}
name: Build ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 3 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down

0 comments on commit c807593

Please sign in to comment.