Skip to content

chore(deps): update commitlint monorepo to v21.2.2 #1168

chore(deps): update commitlint monorepo to v21.2.2

chore(deps): update commitlint monorepo to v21.2.2 #1168

Workflow file for this run

name: Release
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
create-release-pr:
description: 'Create stable release PR'
type: boolean
default: false
required: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
preflight:
uses: ApiTreeCZ/github-actions/.github/workflows/preflight.yml@v0.6.5
wait-for-checks:
runs-on: ubuntu-latest
needs:
- preflight
permissions:
checks: read
if: ${{ !cancelled() && needs.preflight.outputs.should-release == 'true' }}
steps:
- name: Wait for CI checks
uses: poseidon/wait-for-status-checks@v0.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
match_pattern: '^(commitlint|manypkg|eslint|tsc|prettier|test)$'
create-release-pr:
runs-on: ubuntu-latest
needs:
- preflight
- wait-for-checks
if: ${{ success() && inputs.create-release-pr && github.ref_name == 'main' && needs.preflight.outputs.should-release == 'true' && needs.preflight.outputs.is-stable-release == 'false' }}
steps:
- name: Create release PR
uses: ApiTreeCZ/github-actions/.github/actions/create-release-pr@v0.6.5
with:
op-service-account-token: ${{ secrets.OP_APITREE_INFRA_SERVICE_ACCOUNT_TOKEN }}
# Toolbox is specific as it uses its own configs, pnpx commands work without them but the build output is polluted with ERR_MODULE_NOT_FOUND warnings
before-script: pnpm run build
create-snapshot-release:
runs-on: ubuntu-latest
needs:
- preflight
- wait-for-checks
if: ${{ success() && (needs.preflight.outputs.is-release-pr == 'true' || (needs.preflight.outputs.should-release == 'true' && github.ref_name != 'main')) }}
permissions:
id-token: write
pull-requests: write
steps:
- name: Create snapshot release
uses: ApiTreeCZ/github-actions/.github/actions/create-snapshot-release@v0.6.5
with:
op-service-account-token: ${{ secrets.OP_APITREE_INFRA_SERVICE_ACCOUNT_TOKEN }}
# Toolbox is specific as it uses its own configs, pnpx commands work without them but the build output is polluted with ERR_MODULE_NOT_FOUND warnings
before-script: pnpm run build
is-release-pr: ${{ needs.preflight.outputs.is-release-pr }}
create-stable-release:
runs-on: ubuntu-latest
needs:
- preflight
- wait-for-checks
if: ${{ success() && needs.preflight.outputs.is-stable-release == 'true' }}
permissions:
id-token: write
steps:
- name: Create stable release
uses: ApiTreeCZ/github-actions/.github/actions/create-stable-release@v0.6.5
with:
op-service-account-token: ${{ secrets.OP_APITREE_INFRA_SERVICE_ACCOUNT_TOKEN }}
# Toolbox is specific as it uses its own configs, pnpx commands work without them but the build output is polluted with ERR_MODULE_NOT_FOUND warnings
before-script: pnpm run build