From feb5aa6c35ade3f898ec42bcb935e60b5364e432 Mon Sep 17 00:00:00 2001 From: Naveed Jooma Date: Tue, 8 Oct 2024 16:03:32 -0400 Subject: [PATCH] [RSDK-7589] Update remote control version bump workflow (#4263) --- .github/workflows/npm-bump-version.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/npm-bump-version.yml b/.github/workflows/npm-bump-version.yml index 639a88d90ac..2b1843e2a2b 100644 --- a/.github/workflows/npm-bump-version.yml +++ b/.github/workflows/npm-bump-version.yml @@ -11,13 +11,13 @@ on: type: string description: | Typescript SDK Version. - If specified, may be `rc`, `latest`, or a specific version. + If specified, may be `latest`, `next`, or a specific version. Defaults to unspecified, which will not update the TypeScript SDK. bump: required: false type: string - default: 'patch' + default: "patch" description: | RC version to bump to. May be `patch`, `minor`, `major`, or a specific version. @@ -30,12 +30,7 @@ jobs: - name: Check out code uses: actions/checkout@v3 - - name: Bump SDK Version - if: ${{ inputs.sdk_version}} - working-directory: web/frontend - run: npm install --save --save-exact @viamrobotics/sdk@${{ inputs.sdk_version }} - - - name: Bump RC Version + - name: Bump SDK + RC Version run: | cd web/frontend npm install --save --save-exact @viamrobotics/sdk@${{ inputs.sdk_version }} @@ -44,8 +39,8 @@ jobs: - name: Add + Commit + Open PR uses: peter-evans/create-pull-request@v3 with: - commit-message: '[WORKFLOW] Updating remote-control' - branch: 'workflow/bump-remote-control/${{ github.ref_name }}' + commit-message: "[WORKFLOW] Updating remote-control" + branch: "workflow/bump-remote-control/${{ github.ref_name }}" delete-branch: true base: ${{ github.ref_name }} title: Automated remote-control Version Update