diff --git a/.github/actions/monkjs-set-up/action.yml b/.github/actions/monkjs-set-up/action.yml index a38c9bffc..8b6bb2531 100644 --- a/.github/actions/monkjs-set-up/action.yml +++ b/.github/actions/monkjs-set-up/action.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/build-demo-app.yml b/.github/workflows/build-demo-app.yml index 979d61114..9bfc27cf3 100644 --- a/.github/workflows/build-demo-app.yml +++ b/.github/workflows/build-demo-app.yml @@ -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 diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index a8a1c8c52..c38ea8e18 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -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 diff --git a/.github/workflows/build-drive-app.yml b/.github/workflows/build-drive-app.yml deleted file mode 100644 index ebe36b6d0..000000000 --- a/.github/workflows/build-drive-app.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Build Drive App -run-name: Build Drive App On Pull Request - -on: - pull_request: - branches: [main] - -jobs: - build: - name: Build - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - steps: - - name: 💾 Checking out the repository - uses: actions/checkout@v4 - - name: ⚙️ Setting up the MonkJs project - uses: ./.github/actions/monkjs-set-up - - name: 📱 Building the Drive app - run: cd apps/drive-app && yarn build:staging diff --git a/.github/workflows/deploy-demo-app.yml b/.github/workflows/deploy-demo-app.yml index f632b432a..b8391fe84 100644 --- a/.github/workflows/deploy-demo-app.yml +++ b/.github/workflows/deploy-demo-app.yml @@ -19,13 +19,15 @@ 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/upload-artifact@v4.3.1 with: name: build-demo-app-staging - path: build + path: apps/demo-app/build if-no-files-found: error deploy: diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy-documentation.yml index 7403886cf..54ad6ccf4 100644 --- a/.github/workflows/deploy-documentation.yml +++ b/.github/workflows/deploy-documentation.yml @@ -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