-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (34 loc) · 1.03 KB
/
release-bpmn_visualization.yml
File metadata and controls
35 lines (34 loc) · 1.03 KB
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: Release of bpmn-visualization
on:
workflow_dispatch:
inputs:
type:
description: 'New version type [new-version | major | minor | patch]'
required: true
default: 'patch'
jobs:
bumpVersion:
runs-on: ${{ vars.RUNNER_UBUNTU }}
steps:
- run: |
echo "New version type: ${{ inputs.type }}"
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '16'
- name: Setup checkout
uses: actions/checkout@v6
with:
token: ${{ secrets.GH_RELEASE_TOKEN }}
- name: Config git
run: |
git config --local user.email "${{ vars.PA_BOT_EMAIL }}"
git config --local user.name "${{ vars.PA_BOT_NAME }}"
git config pull.rebase true
- name: Checkout master
run: git checkout master && git pull --tags
- name: Bump Version
run: |
npm version ${{ inputs.type }} --message "chore(release): %s"
- name: Push Version
run: git push && git push --tags