-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix publish libs action * push tags only for master * fix publishing only for master * fix leaking sensitive info in the echo * fix publish script and passing branch name to action * fix incorrect travis branch * consistent input naming * npm tag as input * Update .github/workflows/release.yml Co-authored-by: Giovanni Toraldo <[email protected]> * Update .github/workflows/release.yml Co-authored-by: Giovanni Toraldo <[email protected]> * remove not really necessary workflow_call triggers * fixup job conditionals with ref_name * setup job is not really doing anything useful * add setup node to npm publish step * add missing npm install to publish libs * Update scripts/travis/deploy/publish.sh Co-authored-by: Alex Chapellon <[email protected]> * Update scripts/travis/deploy/publish.sh Co-authored-by: Alex Chapellon <[email protected]> * Update .github/actions/git-tag/action.yml Co-authored-by: Alex Chapellon <[email protected]> --------- Co-authored-by: Giovanni Toraldo <[email protected]> Co-authored-by: Giovanni Toraldo <[email protected]> Co-authored-by: Alex Chapellon <[email protected]>
- Loading branch information
1 parent
b3b9a2d
commit 3fb91ee
Showing
6 changed files
with
73 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,16 @@ runs: | |
shell: bash | ||
run: | | ||
if [[ ${{ inputs.branch_name }} == "master" ]]; then | ||
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') | ||
fi; | ||
VERSION=$(jq -cr '.version' < package.json) | ||
echo "git tag -a ${VERSION} -m ${VERSION}" | ||
if [[ ${{ inputs.dry-run }} == false ]]; then | ||
git tag -a ${VERSION} -m "${VERSION} [ci skip] " | ||
git remote rm origin | ||
GITHUB_REPO=https://${{ inputs.github_token }}:[email protected]/Alfresco/alfresco-content-app.git | ||
git remote add origin $GITHUB_REPO | ||
git push origin --tags | ||
fi; | ||
echo "git tag -a ${VERSION} -m ${VERSION}" | ||
if [[ ${{ inputs.dry-run }} == false ]]; then | ||
git tag -a ${VERSION} -m "${VERSION} [ci skip] " | ||
git remote rm origin | ||
GITHUB_REPO=https://${{ inputs.github_token }}:[email protected]/Alfresco/alfresco-content-app.git | ||
git remote add origin $GITHUB_REPO | ||
git push origin --tags | ||
fi; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters