-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.13 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ⚠️ Release
on:
workflow_dispatch:
inputs:
mode:
type: choice
description: Bump version as requested
required: false
default: minor
options:
- patch
- minor
- major
push:
branches: [main]
paths:
- 'projects/**'
jobs:
run-release:
name: Release
if: "!contains(github.event.head_commit.message, 'chore(release)')"
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
with:
fetch-depth: 0
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- 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: npx release-it ${{ github.event.inputs.mode || 'minor' }} --ci
env:
GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}