Skip to content

Commit

Permalink
Merge pull request #939 from sriranjan-s/Dev-2.0
Browse files Browse the repository at this point in the history
added publishAllPackages.yml file for jenkins auto publishing
  • Loading branch information
sriranjan-s authored Feb 28, 2024
2 parents d9d6971 + a92420c commit a3374c5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 21 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publishAllPackages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Node.js Publish UI Packages

on:
push:
branches: [ 'Dev-2.0' ]
paths:
- 'frontend/micro-ui/web/micro-ui-internals/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: cd frontend/micro-ui/web/micro-ui-internals/ && bash ./publish.sh
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
41 changes: 20 additions & 21 deletions frontend/micro-ui/web/micro-ui-internals/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,64 +11,63 @@ msg() {
# sleep 5

msg "Building and publishing css"
cd "$BASEDIR/packages/css" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/css" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing libraries"
cd "$BASEDIR/packages/libraries" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/libraries" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing react-components"
cd "$BASEDIR/packages/react-components" && rm -rf node_modules && rm -rf dist&& yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/react-components" && rm -rf node_modules && rm -rf dist&& yarn build && npm publish --tag upyog-2.0

# sleep 10
# msg "Updating dependencies"
# cd "$BASEDIR" && yarn upgrade -S @egovernments
# sleep 5

msg "Building and publishing PGR module"
cd "$BASEDIR/packages/modules/pgr" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/pgr" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing FSM module"
cd "$BASEDIR/packages/modules/fsm" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/fsm" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing PT module"
cd "$BASEDIR/packages/modules/pt" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/pt" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing DSS module"
cd "$BASEDIR/packages/modules/dss" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/dss" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing Common module"
cd "$BASEDIR/packages/modules/common" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/common" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing Core module"
cd "$BASEDIR/packages/modules/core" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/core" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing OBPS module"
cd "$BASEDIR/packages/modules/obps" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/obps" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing tl module"
cd "$BASEDIR/packages/modules/tl" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/tl" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing bills module"
cd "$BASEDIR/packages/modules/bills" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/bills" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing noc module"
cd "$BASEDIR/packages/modules/noc" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/noc" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing commonPt module"
cd "$BASEDIR/packages/modules/commonPt" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/commonPt" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing engagement module"
cd "$BASEDIR/packages/modules/engagement" && rm -rf node_modules && rm -rf dis && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/engagement" && rm -rf node_modules && rm -rf dis && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing receipts module"
cd "$BASEDIR/packages/modules/receipts" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/receipts" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing hrms module"
cd "$BASEDIR/packages/modules/hrms" && rm -rf node_modules && rm -rf dist && yarn build&& npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/hrms" && rm -rf node_modules && rm -rf dist && yarn build&& npm publish --tag upyog-2.0

msg "Building and publishing ws module"
cd "$BASEDIR/packages/modules/ws" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8

msg "Building and publishing ws module"
cd "$BASEDIR/packages/modules/mCollect" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.8
cd "$BASEDIR/packages/modules/ws" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

msg "Building and publishing mCollect module"
cd "$BASEDIR/packages/modules/mCollect" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --tag upyog-2.0

0 comments on commit a3374c5

Please sign in to comment.