Skip to content

⚠️ Release

⚠️ Release #520

Workflow file for this run

name: ⚠️ Release
on:
workflow_dispatch:
inputs:
mode:
type: choice
description: Bump version as requested
required: true
options:
- minor
- patch
- major
schedule:
- cron: '0 7 * * 1'
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore(release)')"
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/run/release-it@v1.101.0
id: release-it
with:
ref: ${{ github.ref }}
mode: ${{ github.event.inputs.mode }}
npmToken: ${{ secrets.NPM_TOKEN }}
githubToken: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/run/read-package-json@v1.101.0
id: info
- name: Announce to Telegram
if: steps.release-it.outputs.released == 'true'
uses: taiga-family/ci/actions/messenger/telegram/announce@v1.101.0
with:
chatId: ${{ secrets.TAIGA_TELEGRAM_CHAT_ID }}
topicId: ${{ secrets.TAIGA_TELEGRAM_CHAT_THREAD_ID }}
token: ${{ secrets.TAIGA_TELEGRAM_BOT_TOKEN }}
version: v${{ steps.info.outputs.version }}
textLink: ${{ steps.info.outputs.name }}