Skip to content

chore: release main (#125) #87

chore: release main (#125)

chore: release main (#125) #87

name: Release Please
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
server--tag_name: ${{ steps.release.outputs.server--tag_name}}
server--release_created: ${{ steps.release.outputs.server--release_created}}
client--tag_name: ${{ steps.release.outputs.client--tag_name}}
client--release_created: ${{ steps.release.outputs.client--release_created}}
docs--tag_name: ${{ steps.release.outputs.docs--tag_name}}
docs--release_created: ${{ steps.release.outputs.docs--release_created}}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
release-server:
if: ${{needs.release-please.outputs.server--release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: ./.github/actions/setup-node-env
with:
node-version: 18
cache-path: server/node_modules
cache-key: "${{hashFiles('server/pnpm-lock.yaml')}}"
project: server
- run: zip -r server.zip server -x "**/node_modules/*"
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.server--tag_name }} server.zip
release-client:
if: ${{needs.release-please.outputs.client--release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: ./.github/actions/setup-node-env
with:
node-version: 18
cache-path: client/node_modules
cache-key: "${{hashFiles('client/pnpm-lock.yaml')}}"
project: client
- run: zip -r client.zip client -x "**/node_modules/*"
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.client--tag_name }} client.zip
release-docs:
if: ${{needs.release-please.outputs.docs--release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: ./.github/actions/setup-node-env
with:
node-version: 18
cache-path: docs/node_modules
cache-key: "${{hashFiles('docs/pnpm-lock.yaml')}}"
project: docs
- run: zip -r docs.zip docs -x "**/node_modules/*"
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.docs--tag_name }} docs.zip