Skip to content

Commit

Permalink
[RSDK-7589] Update remote control version bump workflow (viamrobotics…
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma authored Oct 8, 2024
1 parent f9359fe commit feb5aa6
Showing 1 changed file with 5 additions and 10 deletions.
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

0 comments on commit feb5aa6

Please sign in to comment.