-
Notifications
You must be signed in to change notification settings - Fork 127
47 lines (41 loc) · 1.18 KB
/
npm-publish.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
name: Publish npm packages
on:
workflow_dispatch:
inputs:
release_type:
description: 'Type of publish (one of: rc, rc-followup, main, both, hotfix)'
required: true
default: 'rc'
branch:
description: 'Hotfix branch'
required: false
jobs:
both:
if: ${{ github.event.inputs.release_type == 'both' }}
uses: ./.github/workflows/reusable-release-both.yml
secrets: inherit
main:
if: ${{ github.event.inputs.release_type == 'main' }}
uses: ./.github/workflows/reusable-release.yml
with:
release_type: main
secrets: inherit
rc:
if: ${{ github.event.inputs.release_type == 'rc' }}
uses: ./.github/workflows/reusable-release.yml
with:
release_type: rc
secrets: inherit
rc-followup:
if: ${{ github.event.inputs.release_type == 'rc-followup' }}
uses: ./.github/workflows/reusable-release.yml
with:
release_type: rc-followup
secrets: inherit
hotfix:
if: ${{ github.event.inputs.release_type == 'hotfix' }}
uses: ./.github/workflows/reusable-release.yml
with:
release_type: hotfix
branch: ${{ github.event.inputs.branch }}
secrets: inherit