mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
cleanup GitHub actions (#3071)
* cleanup GHA * remove unused parameters * consolidate actions, improve readability * remove unused files * restore fetch depth
This commit is contained in:
@@ -49,7 +49,7 @@ runs:
|
||||
|
||||
- name: Publish to GH registry
|
||||
shell: bash
|
||||
run: ./scripts/gh/npm-publish.sh "$TAG" "$DRY_RUN"
|
||||
run: ${{ github.action_path }}/npm-publish.sh "$TAG" "$DRY_RUN"
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ inputs.github_token }}
|
||||
TAG: ${{ inputs.npm_tag }}
|
||||
@@ -64,7 +64,7 @@ runs:
|
||||
|
||||
- name: Publish to NPM registry
|
||||
shell: bash
|
||||
run: ./scripts/gh/npm-publish.sh "$TAG" "$DRY_RUN"
|
||||
run: ${{ github.action_path }}/npm-publish.sh "$TAG" "$DRY_RUN"
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ inputs.npm_registry_token }}
|
||||
TAG: ${{ inputs.npm_tag }}
|
||||
|
||||
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
|
||||
DIST_DIR="$ROOT_DIR/dist/@alfresco"
|
||||
TAG=$1
|
||||
DRY_RUN=$2
|
||||
|
||||
if [[ -z "$TAG" ]]; then
|
||||
echo "Missing tag parameter"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export PROJECTS=(
|
||||
'aca-about'
|
||||
'aca-content'
|
||||
'aca-folder-rules'
|
||||
'adf-office-services-ext'
|
||||
'aca-preview'
|
||||
'aca-shared'
|
||||
'aca-viewer'
|
||||
);
|
||||
|
||||
for PROJECT in ${PROJECTS[@]}
|
||||
do
|
||||
cd $DIST_DIR/$PROJECT
|
||||
|
||||
if [[ "$DRY_RUN" == "true" ]]; then
|
||||
echo "[DRY RUN] Publishing \"$PROJECT\" with \"$TAG\" tag"
|
||||
npm publish --dry-run --tag "$TAG"
|
||||
else
|
||||
echo "Publishing \"$PROJECT\" with \"$TAG\" tag"
|
||||
npm publish --tag "$TAG"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user