Skip to content

Upgrade Dependencies #14

Upgrade Dependencies

Upgrade Dependencies #14

Workflow file for this run

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: .