Upgrade Dependencies #14
Workflow file for this run
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: Upgrade Dependencies | |
on: | |
workflow_dispatch: | |
inputs: | |
package-name: | |
description: 'upgrade package name: [default: "agora-rtc-sdk-ng"]' | |
required: true | |
default: "agora-rtc-sdk-ng" | |
type: string | |
package-version: | |
description: "upgrade package version: [eg: '*.*.*']" | |
required: true | |
type: string | |
jobs: | |
upgrade-dep: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup 🛠️ | |
uses: ./.github/actions/setup | |
- name: Upgrade Dependencies 🚀 | |
run: | | |
pnpm install | |
pnpm -r exec esbuild-dev $PWD/scripts/upgrade-deps.ts dep:${{ inputs.package-name }} @${{ inputs.package-version }} | |
pnpm -w exec esbuild-dev $PWD/scripts/upgrade-deps.ts dep:${{ inputs.package-name }} @${{ inputs.package-version }} | |
pnpm install --no-frozen-lockfile | |
pnpm run test | |
- name: Create pull request | |
uses: AgoraIO-Extensions/actions/.github/actions/pr@main | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
target-repo: ${{ github.workspace }} | |
target-branch: ${{ github.ref_name }} | |
target-branch-name-surffix: dep-update | |
pull-request-title: | | |
chore: upgrade ${{inputs.package-name}} to ${{inputs.package-version}} | |
add-paths: . |