Skip to content

Merge pull request #17 from receter/release-please--branches--main #38

Merge pull request #17 from receter/release-please--branches--main

Merge pull request #17 from receter/release-please--branches--main #38

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
utils--release_created: ${{ steps.release.outputs['packages/utils--release_created']}}
ui--release_created: ${{ steps.release.outputs['packages/ui--release_created']}}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
publish-utils:
if: ${{needs.release-please.outputs.utils--release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/workflows/init-pnpm
- name: Publish 🚀
shell: bash
run: pnpm publish packages/utils --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-ui:
if: ${{needs.release-please.outputs.ui--release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/workflows/init-pnpm
- name: Publish 🚀
shell: bash
run: pnpm publish packages/ui --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}