Skip to content

Bump version

Bump version #7

Workflow file for this run

name: Bump version
on:
workflow_dispatch:
inputs:
channel:
type: choice
default: stable
description: Pick channel
options:
- alpha
- beta
- stable
new-build-for-prerelease:
type: boolean
default: true
description: New build for prerelease
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup node
uses: actions/[email protected]
- name: Create tag name
uses: ./
id: create-tag-name
with:
channel: ${{ inputs.channel }}
- name: Update version
run: |
npm version --no-git-tag-version ${{ env.TAG_NAME }}
env:
TAG_NAME: ${{ steps.create-tag-name.outputs.tag-name }}
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
branch: version/${{ steps.create-tag-name.outputs.tag-name }}
commit-message: ${{ steps.create-tag-name.outputs.tag-name }}
title: Bump version to ${{ steps.create-tag-name.outputs.tag-name }}
body: Automated pull request triggered by a new release.
labels: new-release,ignore-for-release
reviewers: MiguelRipoll23
draft: true