-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 968 Bytes
/
Copy pathsemver.yml
File metadata and controls
35 lines (28 loc) · 968 Bytes
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
34
35
name: Bump Version
on:
workflow_dispatch:
inputs:
semver:
description: 'Select version bump type: major, minor, patch'
required: true
default: 'patch'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Set Git identity
run: |
git config --local user.email "toxic.dev09@gmail.com"
git config --local user.name "Toxic Dev"
- name: Version bump
run: npm version ${{ github.event.inputs.semver }} -m "Bump version to %s"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}