forked from web-platform-dx/web-features
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 966 Bytes
/
prepare_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Prepare 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
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- run: npm ci
- name: ./scripts/release.ts init
run: npx tsx ./scripts/release.ts init --target-repo=$REPO --reviewers=$ACTOR $SEMVER_LEVEL
env:
ACTOR: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
SEMVER_LEVEL: ${{ inputs.semverLevel }}