Skip to content

build-release

build-release #46

Workflow file for this run

name: build-release
on:
workflow_dispatch:
inputs:
releaseTitle:
description: "Release title"
required: true
tagVersion:
description: "Tag version"
required: true
permissions:
actions: read
contents: read
jobs:
linuxBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t build --configuration=production
- run: pnpm exec nx run servicebus-browser-app:make --extraMetadata.version=${{ github.event.inputs.tagVersion }}
- name: Publish release as artifect
uses: actions/upload-artifact@v4
with:
name: linux-release
path: dist/executables
windowsBuild:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t build --configuration=production
- run: pnpm exec nx run servicebus-browser-app:make --extraMetadata.version=${{ github.event.inputs.tagVersion }}
- name: Publish release as artifect
uses: actions/upload-artifact@v4
with:
name: windows-release
path: dist/executables
macBuild:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t build --configuration=production
- run: pnpm exec nx run servicebus-browser-app:make --extraMetadata.version=${{ github.event.inputs.tagVersion }}
- name: Publish release as artifect
uses: actions/upload-artifact@v4
with:
name: macos-release
path: dist/executables