Stage Release #220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
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@8621497c8c39c72f3e2a999a26b4ca1b5058a842 | |
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 }} |