Skip to content

Commit 26c6be6

Browse files
authored
Create blank.yml
1 parent c55b412 commit 26c6be6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/blank.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Create version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionType:
7+
description: Version type
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
15+
- premajor
16+
- preminor
17+
- prepatch
18+
- prerelease
19+
20+
jobs:
21+
create-version:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
with:
26+
ssh-key: ${{ secrets.ADMIN_SSH_KEY }}
27+
- uses: actions/setup-node@v1
28+
with:
29+
node-version: 16
30+
- run: |
31+
git config user.name rescriptbr-admin
32+
git config user.email [email protected]
33+
34+
- name: Generate new version ${{ github.event.inputs.versionType }}
35+
run: |
36+
yarn version --${{ github.event.inputs.versionType }}
37+
38+
- name: Push the tags
39+
run: git push origin main --tags

0 commit comments

Comments
 (0)