Skip to content

Commit

Permalink
Fixed the Deploy Demo App Staging pipeline (#824)
Browse files Browse the repository at this point in the history
* Added fail on artifact not found in Deploy Demo App pipeline

* Removed version of root package.json

* Moved some package dependencies to dev dependencies

* Fixed misbumped packages versions in whole repository

* Also bump private packages in deploy pipeline

* Fixed the Deploy Demo App pipeline
  • Loading branch information
souyahia-monk authored Aug 7, 2024
1 parent 454a985 commit f91135b
Show file tree
Hide file tree
Showing 33 changed files with 356 additions and 513 deletions.
10 changes: 9 additions & 1 deletion .github/actions/monkjs-set-up/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Set Up the MonkJs Project 💽
description: Install the dependencies and build the packages before running other CI jobs.

inputs:
build-env:
description: 'Environement specified when building the packages (development or production).'
required: false
default: 'development'

runs:
using: "composite"
steps:
Expand All @@ -17,4 +23,6 @@ runs:
yarn install
- name: 🏗️ Building packages
shell: bash
run: yarn build
run: yarn build:$BUILD_ENV
env:
BUILD_ENV: ${{ inputs.build-env }}
2 changes: 2 additions & 0 deletions .github/workflows/build-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📱 Building the demo app
run: cd apps/demo-app && yarn build:staging
2 changes: 2 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📚 Building the documentation
run: yarn build:documentation
23 changes: 0 additions & 23 deletions .github/workflows/build-drive-app.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/deploy-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📱 Building the demo app
run: cd apps/demo-app && yarn build:staging
- name: 📦 Uploading the artifact
uses: actions/[email protected]
with:
name: build-demo-app-staging
path: build
path: apps/demo-app/build
if-no-files-found: error

deploy:
name: Deploy
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📚 Building the documentation
run: yarn build:documentation
- name: 📃 Setting Up GitHub Pages
Expand Down
36 changes: 18 additions & 18 deletions apps/demo-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monk-demo-app",
"version": "4.0.0",
"version": "4.0.4",
"license": "BSD-3-Clause-Clear",
"packageManager": "[email protected]",
"description": "MonkJs test app with react and typescript",
Expand All @@ -25,16 +25,16 @@
},
"dependencies": {
"@auth0/auth0-react": "^2.2.4",
"@monkvision/analytics": "4.0.0",
"@monkvision/common": "4.0.0",
"@monkvision/common-ui-web": "4.0.0",
"@monkvision/inspection-capture-web": "4.0.0",
"@monkvision/monitoring": "4.0.0",
"@monkvision/network": "4.0.0",
"@monkvision/posthog": "4.0.0",
"@monkvision/sentry": "4.0.0",
"@monkvision/sights": "4.0.0",
"@monkvision/types": "4.0.0",
"@monkvision/analytics": "4.0.4",
"@monkvision/common": "4.0.4",
"@monkvision/common-ui-web": "4.0.4",
"@monkvision/inspection-capture-web": "4.0.4",
"@monkvision/monitoring": "4.0.4",
"@monkvision/network": "4.0.4",
"@monkvision/posthog": "4.0.4",
"@monkvision/sentry": "4.0.4",
"@monkvision/sights": "4.0.4",
"@monkvision/types": "4.0.4",
"@types/babel__core": "^7",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.18",
Expand All @@ -60,13 +60,13 @@
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@monkvision/eslint-config-base": "4.0.0",
"@monkvision/eslint-config-typescript": "4.0.0",
"@monkvision/eslint-config-typescript-react": "4.0.0",
"@monkvision/jest-config": "4.0.0",
"@monkvision/prettier-config": "4.0.0",
"@monkvision/test-utils": "4.0.0",
"@monkvision/typescript-config": "4.0.0",
"@monkvision/eslint-config-base": "4.0.4",
"@monkvision/eslint-config-typescript": "4.0.4",
"@monkvision/eslint-config-typescript-react": "4.0.4",
"@monkvision/jest-config": "4.0.4",
"@monkvision/prettier-config": "4.0.4",
"@monkvision/test-utils": "4.0.4",
"@monkvision/typescript-config": "4.0.4",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
Expand Down
36 changes: 18 additions & 18 deletions apps/drive-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drive-app",
"version": "4.0.0",
"version": "4.0.4",
"license": "BSD-3-Clause-Clear",
"packageManager": "[email protected]",
"description": "MonkJs capture app for Drive",
Expand All @@ -27,16 +27,16 @@
},
"dependencies": {
"@auth0/auth0-react": "^2.2.4",
"@monkvision/analytics": "4.0.0",
"@monkvision/common": "4.0.0",
"@monkvision/common-ui-web": "4.0.0",
"@monkvision/inspection-capture-web": "4.0.0",
"@monkvision/monitoring": "4.0.0",
"@monkvision/network": "4.0.0",
"@monkvision/posthog": "4.0.0",
"@monkvision/sentry": "4.0.0",
"@monkvision/sights": "4.0.0",
"@monkvision/types": "4.0.0",
"@monkvision/analytics": "4.0.4",
"@monkvision/common": "4.0.4",
"@monkvision/common-ui-web": "4.0.4",
"@monkvision/inspection-capture-web": "4.0.4",
"@monkvision/monitoring": "4.0.4",
"@monkvision/network": "4.0.4",
"@monkvision/posthog": "4.0.4",
"@monkvision/sentry": "4.0.4",
"@monkvision/sights": "4.0.4",
"@monkvision/types": "4.0.4",
"@types/babel__core": "^7",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.18",
Expand All @@ -62,13 +62,13 @@
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@monkvision/eslint-config-base": "4.0.0",
"@monkvision/eslint-config-typescript": "4.0.0",
"@monkvision/eslint-config-typescript-react": "4.0.0",
"@monkvision/jest-config": "4.0.0",
"@monkvision/prettier-config": "4.0.0",
"@monkvision/test-utils": "4.0.0",
"@monkvision/typescript-config": "4.0.0",
"@monkvision/eslint-config-base": "4.0.4",
"@monkvision/eslint-config-typescript": "4.0.4",
"@monkvision/eslint-config-typescript-react": "4.0.4",
"@monkvision/jest-config": "4.0.4",
"@monkvision/prettier-config": "4.0.4",
"@monkvision/test-utils": "4.0.4",
"@monkvision/typescript-config": "4.0.4",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
Expand Down
36 changes: 18 additions & 18 deletions apps/lux-demo-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lux-demo-app",
"version": "4.0.0",
"version": "4.0.4",
"license": "BSD-3-Clause-Clear",
"packageManager": "[email protected]",
"description": "MonkJs demo app for Lux",
Expand All @@ -23,16 +23,16 @@
},
"dependencies": {
"@auth0/auth0-react": "^2.2.4",
"@monkvision/analytics": "4.0.0",
"@monkvision/common": "4.0.0",
"@monkvision/common-ui-web": "4.0.0",
"@monkvision/inspection-capture-web": "4.0.0",
"@monkvision/monitoring": "4.0.0",
"@monkvision/network": "4.0.0",
"@monkvision/posthog": "4.0.0",
"@monkvision/sentry": "4.0.0",
"@monkvision/sights": "4.0.0",
"@monkvision/types": "4.0.0",
"@monkvision/analytics": "4.0.4",
"@monkvision/common": "4.0.4",
"@monkvision/common-ui-web": "4.0.4",
"@monkvision/inspection-capture-web": "4.0.4",
"@monkvision/monitoring": "4.0.4",
"@monkvision/network": "4.0.4",
"@monkvision/posthog": "4.0.4",
"@monkvision/sentry": "4.0.4",
"@monkvision/sights": "4.0.4",
"@monkvision/types": "4.0.4",
"@types/babel__core": "^7",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.18",
Expand All @@ -58,13 +58,13 @@
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@monkvision/eslint-config-base": "4.0.0",
"@monkvision/eslint-config-typescript": "4.0.0",
"@monkvision/eslint-config-typescript-react": "4.0.0",
"@monkvision/jest-config": "4.0.0",
"@monkvision/prettier-config": "4.0.0",
"@monkvision/test-utils": "4.0.0",
"@monkvision/typescript-config": "4.0.0",
"@monkvision/eslint-config-base": "4.0.4",
"@monkvision/eslint-config-typescript": "4.0.4",
"@monkvision/eslint-config-typescript-react": "4.0.4",
"@monkvision/jest-config": "4.0.4",
"@monkvision/prettier-config": "4.0.4",
"@monkvision/test-utils": "4.0.4",
"@monkvision/typescript-config": "4.0.4",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
Expand Down
36 changes: 18 additions & 18 deletions apps/renault-demo-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "renault-demo-app",
"version": "4.0.0",
"version": "4.0.4",
"license": "BSD-3-Clause-Clear",
"packageManager": "[email protected]",
"description": "Renault test app for demo purposes",
Expand All @@ -22,16 +22,16 @@
},
"dependencies": {
"@auth0/auth0-react": "^2.2.4",
"@monkvision/analytics": "4.0.0",
"@monkvision/common": "4.0.0",
"@monkvision/common-ui-web": "4.0.0",
"@monkvision/inspection-capture-web": "4.0.0",
"@monkvision/monitoring": "4.0.0",
"@monkvision/network": "4.0.0",
"@monkvision/posthog": "4.0.0",
"@monkvision/sentry": "4.0.0",
"@monkvision/sights": "4.0.0",
"@monkvision/types": "4.0.0",
"@monkvision/analytics": "4.0.4",
"@monkvision/common": "4.0.4",
"@monkvision/common-ui-web": "4.0.4",
"@monkvision/inspection-capture-web": "4.0.4",
"@monkvision/monitoring": "4.0.4",
"@monkvision/network": "4.0.4",
"@monkvision/posthog": "4.0.4",
"@monkvision/sentry": "4.0.4",
"@monkvision/sights": "4.0.4",
"@monkvision/types": "4.0.4",
"@types/babel__core": "^7",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.18",
Expand All @@ -57,13 +57,13 @@
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@monkvision/eslint-config-base": "4.0.0",
"@monkvision/eslint-config-typescript": "4.0.0",
"@monkvision/eslint-config-typescript-react": "4.0.0",
"@monkvision/jest-config": "4.0.0",
"@monkvision/prettier-config": "4.0.0",
"@monkvision/test-utils": "4.0.0",
"@monkvision/typescript-config": "4.0.0",
"@monkvision/eslint-config-base": "4.0.4",
"@monkvision/eslint-config-typescript": "4.0.4",
"@monkvision/eslint-config-typescript-react": "4.0.4",
"@monkvision/jest-config": "4.0.4",
"@monkvision/prettier-config": "4.0.4",
"@monkvision/test-utils": "4.0.4",
"@monkvision/typescript-config": "4.0.4",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
Expand Down
2 changes: 1 addition & 1 deletion configs/eslint-config-base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@monkvision/eslint-config-base",
"packageManager": "[email protected]",
"version": "4.0.0",
"version": "4.0.4",
"description": "The base ESLint config used in MonkJs projects",
"author": "monkvision",
"private": true,
Expand Down
6 changes: 3 additions & 3 deletions configs/eslint-config-typescript-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@monkvision/eslint-config-typescript-react-native",
"packageManager": "[email protected]",
"version": "4.0.0",
"version": "4.0.4",
"description": "The base ESLint config that used in MonkJs TypeScript React Native projects",
"author": "monkvision",
"private": true,
Expand All @@ -13,11 +13,11 @@
"README.md"
],
"peerDependencies": {
"@monkvision/eslint-config-typescript": "4.0.0",
"@monkvision/eslint-config-typescript": "*",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-native": "^4.0.0"
"eslint-plugin-react-native": "^4.0.4"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions configs/eslint-config-typescript-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@monkvision/eslint-config-typescript-react",
"packageManager": "[email protected]",
"version": "4.0.0",
"version": "4.0.4",
"description": "The base ESLint config that used in MonkJs TypeScript React projects",
"author": "monkvision",
"private": true,
Expand All @@ -13,7 +13,7 @@
"README.md"
],
"peerDependencies": {
"@monkvision/eslint-config-typescript": "4.0.0",
"@monkvision/eslint-config-typescript": "*",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0"
Expand Down
4 changes: 2 additions & 2 deletions configs/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@monkvision/eslint-config-typescript",
"packageManager": "[email protected]",
"version": "4.0.0",
"version": "4.0.4",
"description": "The base ESLint config that used in MonkJs TypeScript projects",
"author": "monkvision",
"private": true,
Expand All @@ -13,7 +13,7 @@
"README.md"
],
"peerDependencies": {
"@monkvision/eslint-config-base": "4.0.0",
"@monkvision/eslint-config-base": "*",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"typescript": "^4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion configs/jest-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@monkvision/jest-config",
"packageManager": "[email protected]",
"version": "4.0.0",
"version": "4.0.4",
"description": "Jest configuration files used in MonkJs projects",
"author": "monkvision",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion configs/prettier-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@monkvision/prettier-config",
"packageManager": "[email protected]",
"version": "4.0.0",
"version": "4.0.4",
"description": "The base Prettier config used in MonkJs projects",
"author": "monkvision",
"private": true,
Expand Down
Loading

0 comments on commit f91135b

Please sign in to comment.