mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add branch release
This commit is contained in:
9
.github/actions/set-npm-tag/action.yml
vendored
9
.github/actions/set-npm-tag/action.yml
vendored
@@ -14,7 +14,6 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: set TAG_NPM
|
- name: set TAG_NPM
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -25,13 +24,21 @@ runs:
|
|||||||
# 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
|
||||||
|
echo "Set next tag"
|
||||||
TAG_NPM=next
|
TAG_NPM=next
|
||||||
# Stable major versions
|
# Stable major versions
|
||||||
else
|
else
|
||||||
|
echo "Set latest tag"
|
||||||
TAG_NPM=latest
|
TAG_NPM=latest
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ ${{ inputs.branch_name }} =~ ^develop(-patch.*)?$ ]]; then
|
if [[ ${{ inputs.branch_name }} =~ ^develop(-patch.*)?$ ]]; then
|
||||||
|
echo "Set Alpha tag"
|
||||||
TAG_NPM=alpha
|
TAG_NPM=alpha
|
||||||
fi
|
fi
|
||||||
|
if [[ ${{ contains(github.event.head_commit.message , '[release-branch:*]') && github.event_name == 'pull_request' }} ]]; then
|
||||||
|
echo "Set Branch tag"
|
||||||
|
TAG_NPM=branch
|
||||||
|
fi
|
||||||
|
|
||||||
echo "TAG_NPM=${TAG_NPM}" >> $GITHUB_ENV
|
echo "TAG_NPM=${TAG_NPM}" >> $GITHUB_ENV
|
||||||
|
Reference in New Issue
Block a user