-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.34 KB
/
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: ⚡ Version bump
on:
workflow_run:
workflows: ['⚡ Coverage badges generation']
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
version-bump:
name: 🆕 Version bump
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Setup bun
uses: oven-sh/setup-bun@v2
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
cache-dependency-path: ./package.json
- name: 📥 Install deps
run: bun install --frozen-lockfile
- name: ⏫ Bump package version
id: bumping-version
uses: ./
with:
debug: true
major-keywords: BREAKING CHANGE
minor-keywords: feat,minor
patch-keywords: fix,chore
should-default-to-patch: true
commit-user: jpb06
commit-user-email: jpb.06@outlook.com
- name: Display action output
run: |
echo "Bump performed: ${{ steps.bumping-version.outputs.bump-performed }}"
echo "New version: ${{ steps.bumping-version.outputs.new-version }}"