Skip to content

Commit 4a074fd

Browse files
authored
ci: add release alpha job (#15)
1 parent 3a2f054 commit 4a074fd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release Alpha
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
type:
7+
type: choice
8+
description: Release type, `prerelase` is used by default
9+
options:
10+
- prerelease
11+
- prepatch
12+
- preminor
13+
- premajor
14+
default: prerelease
15+
version:
16+
type: string
17+
required: false
18+
description: If your build failed and the version is already exists you can set version of package manually, e.g. `3.0.0-alpha.0``. Use the prefix `alpha` otherwise you will get error.
19+
20+
jobs:
21+
release:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Release Alpha from ${{ github.ref_name }}
25+
uses: gravity-ui/release-action@v1
26+
with:
27+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
28+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
29+
node-version: 18
30+
npm-version: ${{ github.event.inputs.version || github.event.inputs.type }}
31+
npm-dist-tag: alpha
32+
npm-preid: alpha

0 commit comments

Comments
 (0)