-
-
Notifications
You must be signed in to change notification settings - Fork 199
50 lines (47 loc) · 1.69 KB
/
Copy pathpatch-version-bump.yml
File metadata and controls
50 lines (47 loc) · 1.69 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Bump patch version
on:
push:
branches: [ staging, tauri ]
jobs:
build-tasks:
runs-on: ubuntu-22.04
steps:
- name: setup node
uses: actions/setup-node@v7
with:
node-version: 24
- uses: actions/checkout@v7
with:
ref: main
# keep the checkout token in the local git config so that
# peter-evans/create-pull-request can push the bump branch
persist-credentials: true
- name: Bump patch version
run: |
npm ci
npm run _patchVersionBump
git status
phoenix_version=`node -p "require('./package.json').apiVersion"`
echo "PHOENIX_VERSION=${phoenix_version}" >> $GITHUB_ENV
shell: bash
- name: Create Bump patch version Pull Request
id: cpr
uses: peter-evans/create-pull-request@v8
with:
commit-message: 'ci: bump patch version to ${{ env.PHOENIX_VERSION }}'
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: '[Release BOT] Bump patch version to ${{ env.PHOENIX_VERSION }}'
add-paths: |
package.json
src/config.json
src-node/package.json
src/index.html
body: |
Bump patch version to ${{ env.PHOENIX_VERSION }}
- Auto-generated by `patch-version-bump.yml` action
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"