Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RSDK-7589] Update remote control version bump workflow #4263

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/npm-bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
Loading