mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-10 14:11:42 +00:00
changed root env var
This commit is contained in:
@@ -8,9 +8,9 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: ${{ github.event_name }}
|
default: ${{ github.event_name }}
|
||||||
branch_name:
|
branch_name:
|
||||||
description: "override GITHUB_REF_NAME"
|
description: "override GITHUB_BASE_REF"
|
||||||
required: false
|
required: false
|
||||||
default: $GITHUB_REF_NAME
|
default: $GITHUB_BASE_REF
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -45,7 +45,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION_IN_PACKAGE_JSON=$(node -p "require('./package.json')".version)
|
VERSION_IN_PACKAGE_JSON=$(node -p "require('./package.json')".version)
|
||||||
echo "version in package.json=${VERSION_IN_PACKAGE_JSON}"
|
echo "version in package.json=${VERSION_IN_PACKAGE_JSON}"
|
||||||
if [[ ${{ inputs.base_ref }} =~ ^master(-patch.*)?$ ]]; then
|
if [[ ${{ inputs.branch_name }} =~ ^master(-patch.*)?$ ]]; then
|
||||||
# Pre-release versions
|
# Pre-release versions
|
||||||
if [[ $VERSION_IN_PACKAGE_JSON =~ ^[0-9]*\.[0-9]*\.[0-9]*-A\.[0-9]*$ ]];
|
if [[ $VERSION_IN_PACKAGE_JSON =~ ^[0-9]*\.[0-9]*\.[0-9]*-A\.[0-9]*$ ]];
|
||||||
then
|
then
|
||||||
@@ -55,7 +55,7 @@ runs:
|
|||||||
TAG_NPM=latest
|
TAG_NPM=latest
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ ${{ inputs.base_ref }} =~ ^develop(-patch.*)?$ ]]; then
|
if [[ ${{ inputs.branch_name }} =~ ^develop(-patch.*)?$ ]]; then
|
||||||
TAG_NPM=alpha
|
TAG_NPM=alpha
|
||||||
fi
|
fi
|
||||||
echo "TAG_NPM=${TAG_NPM}" >> $GITHUB_ENV
|
echo "TAG_NPM=${TAG_NPM}" >> $GITHUB_ENV
|
Reference in New Issue
Block a user