mirror of
https://github.com/selfxyz/self.git
synced 2026-01-14 00:58:07 -05:00
* 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
25 lines
656 B
YAML
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
|