generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (53 loc) · 1.57 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.head_ref }}
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/[email protected]
- uses: taiga-family/ci/actions/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/[email protected]
with:
token: ${{ secrets.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
- name: Build
run: npx nx build tui-editor
- name: Publish
if: always()
run: npx nx publish tui-editor
concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true