Prepare web-features release #2
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: Prepare a web-features release | |
on: | |
workflow_dispatch: | |
inputs: | |
semverLevel: | |
description: "Bump to semver level" | |
required: true | |
type: choice | |
default: "minor" | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
open_pr: | |
name: Open PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- run: npm ci | |
- name: Bump version number | |
run: npx tsx ./scripts/release.ts init --target-repo=$REPO $SEMVER_LEVEL | |
env: | |
SEMVER_LEVEL: ${{ inputs.semverLevel }} | |
REPO: ${{ github.action_repository }} |