From 329d30499c6a2a8031e723e3932eb1c8b0c0401f Mon Sep 17 00:00:00 2001 From: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:18:29 +0530 Subject: [PATCH] fixes for publishing --- .github/workflows/publishUIPackages.yml | 2 +- .../micro-ui-internals/publish-package.json | 79 +++++++++++++++++++ .../web/micro-ui-internals/publish.sh | 14 ++-- 3 files changed, 87 insertions(+), 8 deletions(-) create mode 100644 frontend/micro-ui/web/micro-ui-internals/publish-package.json diff --git a/.github/workflows/publishUIPackages.yml b/.github/workflows/publishUIPackages.yml index dfea95e621..7ec1c06d8b 100644 --- a/.github/workflows/publishUIPackages.yml +++ b/.github/workflows/publishUIPackages.yml @@ -6,7 +6,7 @@ on: # Push events on main branch - 'master' # Push events to branches matching refs/heads/mona/octocat - - 'UAT' + - 'FIX' - 'MUKTA-v2.1-Develop' - 'MUKTA-DEVELOP-v2.1.1' paths: diff --git a/frontend/micro-ui/web/micro-ui-internals/publish-package.json b/frontend/micro-ui/web/micro-ui-internals/publish-package.json new file mode 100644 index 0000000000..cdf78b5bc8 --- /dev/null +++ b/frontend/micro-ui/web/micro-ui-internals/publish-package.json @@ -0,0 +1,79 @@ +{ + "name": "egovernments", + "version": "1.0.0", + "main": "index.js", + "workspaces": [ + "packages/libraries", + "packages/react-components", + "packages/modules/Estimate", + "packages/modules/RateAnalysis", + "packages/Mukta" + ], + "author": "JaganKumar ", + "license": "MIT", + "private": true, + "engines": { + "node": ">=14" + }, + "scripts": { + "start": "SKIP_PREFLIGHT_CHECK=true run-s build start:dev", + "sprint": "SKIP_PREFLIGHT_CHECK=true run-s start:script", + "start:dev": "run-p dev:**", + "start:script": "./scripts/create.sh", + "dev:css": "cd packages/css && yarn start", + "publish:css": "cd packages/css && yarn publish --access public", + "dev:libraries": "cd packages/libraries && yarn start", + "dev:components": "cd packages/react-components && yarn start", + "dev:contracts": "cd packages/modules/Contracts && yarn start", + "dev:attendencemgmt": "cd packages/modules/AttendenceMgmt && yarn start", + "dev:masters": "cd packages/modules/Masters && yarn start", + "dev:measurement": "cd packages/modules/Measurement && yarn start", + "dev:project": "cd packages/modules/Project && yarn start", + "dev:estimate": "cd packages/modules/Estimate && yarn start", + "dev:mukta": "cd packages/Mukta && yarn start", + "devD:works": "cd packages/modules/works && yarn start", + "dev:expenditure": "cd packages/modules/Expenditure && yarn start", + "dev:rateAnalysis":"cd packages/modules/RateAnalysis && yarn start", + "dev:example": "cd example && yarn start", + "build": "run-p build:**", + "buildD": "run-p buildD:**", + "build:libraries": "cd packages/libraries && yarn build", + "build:components": "cd packages/react-components && yarn build", + "buildD:attendencemgmt": "cd packages/modules/AttendenceMgmt && yarn build", + "buildD:contracts": "cd packages/modules/Contracts && yarn build", + "buildD:masters": "cd packages/modules/Masters && yarn build", + "build:estimate": "cd packages/modules/Estimate && yarn build", + "buildD:measurement": "cd packages/modules/Measurement && yarn build", + "build:mukta": "cd packages/Mukta && yarn build", + "buildD:project": "cd packages/modules/Project && yarn build", + "buildD:works": "cd packages/modules/works && yarn build", + "buildD:expenditure": "cd packages/modules/Expenditure && yarn build", + "build:rateAnalysis":"cd packages/modules/RateAnalysis && yarn build", + "deploy:jenkins": "./scripts/jenkins.sh", + "clean": "rm -rf node_modules" + }, + "devDependencies": { + "husky": "7.0.4", + "lint-staged": "12.3.7", + "npm-run-all": "4.1.5", + "prettier": "2.1.2", + "react-responsive": "9.0.2" + }, + "husky": {}, + "lint-staged": { + "*.{js,css,md}": "prettier --write" + }, + "dependencies": { + "react-google-recaptcha": "^3.1.0", + "lodash": "^4.17.21", + "microbundle-crl": "0.13.11", + "react": "17.0.2", + "react-dom": "17.0.2", + "react-hook-form": "6.15.8", + "react-i18next": "11.16.2", + "react-query": "3.6.1", + "react-router-dom": "5.3.0", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6" + } +} \ No newline at end of file diff --git a/frontend/micro-ui/web/micro-ui-internals/publish.sh b/frontend/micro-ui/web/micro-ui-internals/publish.sh index 7a28327c4f..a0d925471a 100644 --- a/frontend/micro-ui/web/micro-ui-internals/publish.sh +++ b/frontend/micro-ui/web/micro-ui-internals/publish.sh @@ -6,19 +6,19 @@ msg() { echo -e "\n\n\033[32;32m$1\033[0m" } -# msg "Pre-building all packages" +msg "Removing the default package dependency file" +rm package.json + +msg "replacing the default package dependency file" +cp publish-package.json package.json + +msg "Pre-building all packages" yarn # sleep 5 msg "Building and publishing css" cd "$BASEDIR/packages/css" && yarn&& npm publish --tag mukta-2.1.2-uicomp-v0.2 -# msg "Building and publishing libraries" -# cd "$BASEDIR/packages/libraries" && yarn publish --access public - -# msg "Building and publishing react-components" -# cd "$BASEDIR/packages/react-components" && yarn publish --access public - # sleep 10 # msg "Updating dependencies" # cd "$BASEDIR" && yarn upgrade -S @egovernments