From 5b128b278ec6bef3a44387a525d5c9993ffff966 Mon Sep 17 00:00:00 2001 From: Kyzyl-ool Kezhik Date: Thu, 12 Oct 2023 10:32:55 +0200 Subject: [PATCH] feat: copied from pc (#131) --- .github/workflows/release-alpha.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release-alpha.yml diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml new file mode 100644 index 00000000..69199660 --- /dev/null +++ b/.github/workflows/release-alpha.yml @@ -0,0 +1,31 @@ +name: Release alpha version + +on: + workflow_dispatch: + inputs: + manualVersion: + type: string + required: false + 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.' + prerelease: + type: choice + description: Release type, patch is used by default + default: 'prerelease' + options: + - prerelease + - prepatch + - preminor + - premajor + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: gravity-ui/release-action@v1 + with: + github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }} + npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }} + node-version: 18 + npm-dist-tag: alpha + npm-preid: alpha + npm-version: ${{ github.event.inputs.manualVersion || github.event.inputs.prerelease }}