Skip to content

Commit 5b128b2

Browse files
authored
feat: copied from pc (#131)
1 parent 031849a commit 5b128b2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release alpha version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
manualVersion:
7+
type: string
8+
required: false
9+
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.'
10+
prerelease:
11+
type: choice
12+
description: Release type, patch is used by default
13+
default: 'prerelease'
14+
options:
15+
- prerelease
16+
- prepatch
17+
- preminor
18+
- premajor
19+
20+
jobs:
21+
release:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: gravity-ui/release-action@v1
25+
with:
26+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
27+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
28+
node-version: 18
29+
npm-dist-tag: alpha
30+
npm-preid: alpha
31+
npm-version: ${{ github.event.inputs.manualVersion || github.event.inputs.prerelease }}

0 commit comments

Comments
 (0)