cleanup GitHub actions (#3071)

* cleanup GHA

* remove unused parameters

* consolidate actions, improve readability

* remove unused files

* restore fetch depth
This commit is contained in:
Denys Vuika
2023-03-22 12:48:53 -04:00
committed by GitHub
parent 509bb5ee93
commit c3b9886edf
16 changed files with 68 additions and 154 deletions

View File

@@ -1,34 +0,0 @@
#!/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

View File

@@ -1,31 +0,0 @@
#!/usr/bin/env bash
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
VERSION=$1
DRY_RUN=$2
if [[ -z "$VERSION" ]]; then
echo "Missing version 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
echo "Updating \"$PROJECT\" to version \"$VERSION\""
if [[ "$DRY_RUN" != "true" ]]; then
PROJECT_DIR=$ROOT_DIR/projects/$PROJECT
(cd $PROJECT_DIR && npm version --allow-same-version --no-git-tag-version --force "$VERSION")
fi
done

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const path = require('path');
const tsConfigPath = path.resolve(__dirname, 'tsconfig.json');
const tsConfig = require(tsConfigPath);
require('ts-node').register({ project: tsConfigPath });
require('tsconfig-paths').register({
project: tsConfigPath,
baseUrl: path.resolve(__dirname),
paths: tsConfig.compilerOptions.paths
});
const handlerParam = process.argv[2];
const RunnerClass = require(`./npm/${handlerParam}.ts`).default;
const runnerArgs = [...process.argv];
runnerArgs.splice(2, 1);
const runner = new RunnerClass(runnerArgs);
runner.run();

View File

@@ -1,32 +0,0 @@
{
"compilerOptions": {
"outDir": "./dist/scripts",
"module": "commonjs",
"target": "es5",
"baseUrl": ".",
"sourceMap": false,
"declaration": false,
"moduleResolution": "node",
"resolveJsonModule": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"allowSyntheticDefaultImports": true,
"typeRoots": [
"node_modules/@types",
"node_modules/commander/typings/index.d.ts"
],
"lib": ["es2018", "dom"],
"types": ["node", "jasmine", "jest"],
"paths": {
"angular.json": ["../angular.json"]
}
},
"exclude": ["node_modules"],
"angularCompilerOptions": {
"preserveWhitespaces": false
}
}