Skip to content

Commit

Permalink
ci: add release alpha job (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
DakEnviy authored Aug 11, 2024
1 parent 3a2f054 commit 4a074fd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Alpha

on:
workflow_dispatch:
inputs:
type:
type: choice
description: Release type, `prerelase` is used by default
options:
- prerelease
- prepatch
- preminor
- premajor
default: prerelease
version:
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.

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release Alpha from ${{ github.ref_name }}
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-version: ${{ github.event.inputs.version || github.event.inputs.type }}
npm-dist-tag: alpha
npm-preid: alpha

0 comments on commit 4a074fd

Please sign in to comment.