Release workflow fix (#11733)

* Release workflow fix

* Remove obsolete script

* Small fix
This commit is contained in:
Michal Kinas
2026-03-11 15:37:58 +01:00
committed by GitHub
parent f44e4e90e8
commit 2e668fc7b2
3 changed files with 4 additions and 82 deletions
-22
View File
@@ -1,22 +0,0 @@
#!/bin/bash
if [[ $BRANCH == "master" ]]; then
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
else
VERSION=$(npm view @alfresco/adf-core@beta version)
fi;
echo "git tag -a ${VERSION} -m ${VERSION}"
git config --local user.name "alfresco-build"
git config --local user.email "build@alfresco.com"
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
git remote rm origin
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
git remote add origin $GITHUB_REPO
if [[ "$1" == "--dryrun" ]]; then
echo "dry run: Pushing new tag ${VERSION}!"
else
echo "Pushing new tag ${VERSION}!"
git push origin --tags
fi;