-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (46 loc) · 1.36 KB
/
bump-manifest-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
53
name: Bump Manifest Version
on:
workflow_dispatch:
inputs:
version:
description: 'Version to bump to'
required: true
default: 'build'
type: choice
options:
- build
- patch
- minor
permissions:
contents: write
pull-requests: write
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Environment setup
uses: ./.github/actions/setup
- name: Bump version
id: bump
uses: actions/github-script@v7
env:
INPUT_VERSION: ${{ github.event.inputs.version }}
with:
script: |
const script = require('./.github/actions/bump-manifest-version.cjs')
await script({ github, context, core })
- name: Format with Biome
run: pnpm format:fix
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: release version ${{ steps.bump.outputs.version }}'
title: 'chore: release version ${{ steps.bump.outputs.version }}'
body: |
Bump extension version to ${{ steps.bump.outputs.version }}
branch: preview/${{ steps.bump.outputs.version }}
labels: preview