Skip to content

chore(release): v18.6.0 #344

chore(release): v18.6.0

chore(release): v18.6.0 #344

Workflow file for this run

name: ⚠️ Release
on:
push:
branches: [main]
paths:
- 'libs/**/*'
- '!libs/**/*.spec.ts'
- '!libs/**/*.md'
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
- prerelease
jobs:
run-release:
name: Release
if: "!contains(github.event.head_commit.message, 'chore(release)')"
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.ANGULAR_RU_BOT_PAT }}
GITHUB_TOKEN: ${{ secrets.ANGULAR_RU_BOT_PAT }}
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.65.1
with:
fetch-depth: 0
token: ${{ secrets.ANGULAR_RU_BOT_PAT }}
- uses: taiga-family/ci/actions/setup/node@v1.65.1
- uses: taiga-family/ci/actions/setup/config/git@v1.65.1
with:
token: ${{ secrets.ANGULAR_RU_BOT_PAT }}
- uses: taiga-family/ci/actions/setup/config/npm@v1.65.1
with:
token: ${{ secrets.NPM_TOKEN }}
- run: |
if [[ "${{ github.event.inputs.forcePush }}" == "true" ]]; then
if [[ "${{ github.event.inputs.mode }}" != "prerelease" ]]; then
npx release-it "${{ github.event.inputs.mode }}" --increment --ci
else
npx release-it --preRelease=alpha --ci
fi
else
npx release-it minor --increment --ci
fi