Stage Release #210
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@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 }} |