version_bump #43
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: version_bump | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseKind: | |
description: 'Kind of version bump' | |
default: 'patch' | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
required: true | |
jobs: | |
build: | |
name: version bump | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Configure git | |
run: | | |
git config --global core.symlinks true | |
git config --global fetch.parallel 32 | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Install deno | |
uses: denoland/setup-deno@v1 | |
with: | |
# use a recent version instead of the latest version in case | |
# the latest version ever has issues that breaks publishing | |
deno-version: v1.30.0 | |
- name: Run version bump | |
run: | | |
deno run --allow-read=. --allow-write=. https://deno.land/x/[email protected]/cli.ts --${{github.event.inputs.releaseKind}} | |
- name: Create PR | |
env: | |
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }} | |
GH_WORKFLOW_ACTOR: ${{ github.actor }} | |
run: | | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
git config user.name "${{ github.actor }}" | |
./tools/release/create_pr.ts |