Skip to content

Stage Release

Stage Release #206

Workflow file for this run

name: Stage Release
on:
workflow_dispatch:
inputs:
version:
required: true
description: 'Release version'
jobs:
release_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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 }}