-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.26 KB
/
manual_bump_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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Bump version
on:
workflow_dispatch:
inputs:
semver:
description: 'Semver bump'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
jobs:
bump-version:
name: Bump package ${{ inputs.semver }} version
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
repository: vHeemstra/is-apng
fetch-depth: 0
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
- name: Set Git user
run: |
git config --global user.name 'vHeemstra'
git config --global user.email '[email protected]'
- run: npm install
- name: Major version
if: ${{ inputs.semver == 'major' }}
run: npm run bump:major
- name: Minor version
if: ${{ inputs.semver == 'minor' }}
run: npm run bump:minor
- name: Patch version
if: ${{ inputs.semver == 'patch' }}
run: npm run bump:patch