Skip to content

Commit

Permalink
feat: add release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinLupa committed Dec 11, 2024
1 parent 214c676 commit e925805
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release apps

on:
workflow_dispatch:
push:
branches:
- master
env:
CI: true
HUSKY: 0
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write
packages: write

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 45
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
prs_created: ${{ steps.release.outputs.prs_created }}
pr_number: ${{ steps.release.outputs.pr.number }}
steps:
- uses: googleapis/release-please-action@v3
id: release
with:
command: manifest
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
monorepo-tags: true
default-branch: master
- name: Echo outputs
run: |
echo "Releases created: ${{ steps.release.outputs.releases_created }}"
echo "PRs created: ${{ steps.release.outputs.prs_created }}"
echo "PR number: ${{ steps.release.outputs.pr.number }}"
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"plugins": ["node-workspace"],
"release-type": "node",
"packages": {
"apps/unified": {},
"apps/login": {}
}
}

0 comments on commit e925805

Please sign in to comment.