-
Notifications
You must be signed in to change notification settings - Fork 248
39 lines (32 loc) · 1.07 KB
/
stage.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
name: Stage Release
on:
workflow_dispatch:
inputs:
version:
required: true
description: 'Release version'
jobs:
release_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Bump version and config
run: |
npm run install-ci
npm run bundle-config
node scripts/bumpVersion.js ${{ github.event.inputs.version }}
- name: Commit config and version updates
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
with:
commit_message: "Release ${{ github.event.inputs.version }} [ci release]"
create_branch: true
branch: "release/${{ github.event.inputs.version }}"
- name: Create Pull Request
run: |
gh pr create -B main --title "Prepare release ${{ github.event.inputs.version }}" --body "Updated version and bundled config."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}