forked from web-platform-dx/web-features
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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 | ||
- 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 --reviewer=$ACTOR $SEMVER_LEVEL | ||
env: | ||
ACTOR: ${{ github.actor }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
SEMVER_LEVEL: ${{ inputs.semverLevel }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
⚠ Caution! Merging this PR triggers a release. Continue reading before merging. ⚠ | ||
This is a generated release pull request. Don't merge if you're not ready to carry out the release. |
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