You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Build and publish -beta tag for @gravity-ui/date-components
2
+
# Runs manually in Actions tabs in github
3
+
# Runs on any branch except main
4
+
5
+
name: Release beta version
6
+
7
+
on:
8
+
workflow_dispatch:
9
+
inputs:
10
+
version:
11
+
type: string
12
+
required: false
13
+
description: 'If your build failed and the version is already exists you can set version of package manually, e.g. 3.0.0-beta.0. Use the prefix `beta` otherwise you will get error.'
14
+
15
+
jobs:
16
+
build:
17
+
runs-on: ubuntu-latest
18
+
steps:
19
+
- run: |
20
+
if [ "${{ github.event.inputs.version }}" != "" ]; then
21
+
if [[ "${{ github.event.inputs.version }}" != *"beta"* ]]; then
22
+
echo "version set incorrectly! Check that is contains beta in it's name"
23
+
exit 1
24
+
fi
25
+
fi
26
+
- uses: actions/checkout@v4
27
+
- uses: actions/setup-node@v4
28
+
with:
29
+
node-version: 18
30
+
registry-url: 'https://registry.npmjs.org'
31
+
- name: Install Packages
32
+
run: npm ci
33
+
- name: Lint Files
34
+
run: npm run lint
35
+
- name: Typecheck
36
+
run: npm run typecheck
37
+
- name: Test
38
+
run: npm test
39
+
- name: Bump and commit version
40
+
run: |
41
+
echo ${{ github.event.inputs.version }}
42
+
43
+
if [ "${{ github.event.inputs.version }}" == "" ]; then
44
+
npm version prerelease --preid=beta --git-tag-version=false
45
+
else
46
+
npm version ${{ github.event.inputs.version }} --git-tag-version=false
0 commit comments