-
Notifications
You must be signed in to change notification settings - Fork 14
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
2 changed files
with
81 additions
and
6 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,54 @@ | ||
name: Release Pull Request | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: choice | ||
description: 'Release Type(next, beta, alpha, latest)' | ||
required: true | ||
default: 'latest' | ||
options: | ||
- next | ||
- beta | ||
- alpha | ||
- latest | ||
|
||
jobs: | ||
release: | ||
name: Create Release Pull Request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 100 | ||
|
||
- name: Install Pnpm | ||
run: corepack enable | ||
|
||
- name: Setup Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
cache: 'pnpm' | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Prepare Monorepo-Tools | ||
run: pnpm run --filter @modern-js/monorepo-tools... build | ||
|
||
- name: Create Release Pull Request | ||
uses: web-infra-dev/actions@v2 | ||
with: | ||
# this expects you to have a script called release which does a build for your packages and calls changeset publish | ||
version: ${{ github.event.inputs.version }} | ||
versionNumber: 'auto' | ||
type: 'pull request' | ||
tools: 'modern' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
REF: ${{ github.ref }} |
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