Skip to content

Version Bump

Version Bump #1

Workflow file for this run

---
name: Version Bump
on:
workflow_dispatch:
inputs:
version:
description: "Version to bump to"
required: true
default: "patch"
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
registry-url: "https://registry.npmjs.org"
cache: "npm"
- name: Build package
run: |
npm ci
- name: Bump version
run: |
npm version ${{ github.event.inputs.version }} --no-git-tag-version
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
title: "Bump version to ${{ github.event.inputs.version }}"
body: "Bump version to ${{ github.event.inputs.version }}"
base: main
branch: ci/version-bump-${{ github.event.inputs.version }}
commit-message: "Bump version to ${{ github.event.inputs.version }}"
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
labels: version-bump