-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 971 Bytes
/
version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: versioning
on:
workflow_dispatch:
inputs:
version:
description: 'should be a valid semver string to semver.inc (one of patch, minor, major, prepatch, preminor, premajor, prerelease).'
required: true
default: 'minor'
jobs:
version:
name: version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Set git user
run: |
git config --global user.email "<>"
git config --global user.name "openameba"
- run: npm version ${{ github.event.inputs.version }}
- run: git push --tags
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
delete-branch: true
commit-message: 'chore: update version'
title: 'chore: update version'
body: ''