Skip to content

⚠️ Release

⚠️ Release #1

Workflow file for this run

name: ⚠️ Release
on:
workflow_dispatch:
inputs:
forcePush:
type: boolean
required: false
description: --force-publish package
mode:
type: choice
description: force package to be versioned (depend --force-publish)
required: false
default: minor
options:
- patch
- minor
- major
- prepatch
jobs:
run-release:
name: Run release
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore(release)')"
env:
GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
ref: ${{ github.ref }}
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/config/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/setup/config/[email protected]
with:
token: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }}
- run: |
if [[ "${{ github.event.inputs.forcePush }}" == "true" ]]; then
if [[ "${{ github.event.inputs.mode }}" != "prepatch" ]]; then
npx release-it "${{ github.event.inputs.mode }}" --increment --ci
else
npx release-it --preRelease=alpha --ci
fi
else
npx release-it --increment --ci
fi
concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true