Files
self/.github/actions/get-version/action.yml
Justin Hernandez a66c5907eb SELF-832: tweak mobile deploy auto bump version pr feature; v2.7.0 (#1244)
* bump version to match staging

* save wip

* deploy fixes

* fix version setting

* update version logic

* fix version pr

* increase timeout to 2 hours

* pr logic tweaks

* fix script

* fix script path

* add comments and update logic to test from feature branch

* fix build path

* fix version input error

* fix pulling version

* add skip-deploy lable

* address cr concners
2025-10-10 00:17:01 -07:00

25 lines
656 B
YAML

name: Get Version from package.json
description: "Gets the version from package.json and sets it as an environment variable"
inputs:
app_path:
description: "Path to the app directory"
required: true
outputs:
version:
description: "Extracted app version from package.json"
value: ${{ steps.get-version.outputs.version }}
runs:
using: "composite"
steps:
- name: Get version from package.json
id: get-version
shell: bash
run: |
VERSION=$(node -p "require('${{ inputs.app_path }}/package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "VERSION=$VERSION" >> $GITHUB_ENV