mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
fix gha setup (#3049)
This commit is contained in:
9
.github/actions/setup/action.yml
vendored
9
.github/actions/setup/action.yml
vendored
@@ -21,9 +21,11 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
TAG_NPM="alpha"
|
TAG_NPM="alpha"
|
||||||
VERSION_IN_PACKAGE_JSON=$(node -p "require('./package.json')".version)
|
VERSION_IN_PACKAGE_JSON=$(jq -cr '.version' < package.json)
|
||||||
|
|
||||||
echo "version in package.json=${VERSION_IN_PACKAGE_JSON}"
|
echo "version in package.json=${VERSION_IN_PACKAGE_JSON}"
|
||||||
if [[ ${{ inputs.branch_name }} =~ ^master(-patch.*)?$ ]]; then
|
|
||||||
|
if [[ $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
|
||||||
@@ -33,7 +35,8 @@ runs:
|
|||||||
TAG_NPM=latest
|
TAG_NPM=latest
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ ${{ inputs.branch_name }} =~ ^develop(-patch.*)?$ ]]; then
|
|
||||||
|
if [[ $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