⚠️ Release #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ⚠️ Release @tinkoff/tui-editor | |
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 | |
jobs: | |
run-release: | |
name: Run release | |
runs-on: ubuntu-latest | |
env: | |
GH_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/config/[email protected] | |
with: | |
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | |
- uses: taiga-family/ci/actions/setup/config/[email protected] | |
with: | |
token: ${{ secrets.TINKOFF_SCOPE_NPM_TOKEN }} | |
- name: Lerna update version of packages | |
if: always() | |
run: | | |
if [[ ${{ github.event.inputs.forcePush }} == "true" ]]; then | |
npx lerna version ${{ github.event.inputs.mode }} --no-private --force-publish | |
else | |
npx lerna version --no-private | |
fi | |
- run: npx nx build tui-editor | |
- run: npx nx publish tui-editor | |
if: always() | |
- id: info | |
run: | | |
echo "version=v$(node -p "require('./projects/tui-editor/package.json').version")" >> $GITHUB_OUTPUT | |
- name: Announce to Telegram | |
uses: taiga-family/ci/actions/messenger/telegram/[email protected] | |
with: | |
chatId: ${{ secrets.TAIGA_TELEGRAM_CHAT_ID }} | |
topicId: ${{ secrets.TAIGA_TELEGRAM_CHAT_THREAD_ID }} | |
token: ${{ secrets.TAIGA_TELEGRAM_BOT_TOKEN }} | |
version: ${{ steps.info.outputs.version }} | |
textLink: '@tinkoff/tui-editor' |