DevOps Classroom notes 17/Sep/2025

React Js

  • React Js, Vue Js and Angular JS are most widely adopted UI frameworks
  • All of them use nodejs. nodejs has an inbuild package manager called as npm
  • All nodejs projects have package.json file which has scripts section
npm run <section>
  • To install dependencies we use
npm install
  • Nodejs has many versions and nvm (node version manager) makes it easier to install multiple versions of node
on:
    pull_request:
      branches: 
        - main
    workflow_dispatch:

jobs:
    store-front:
        runs-on: ubuntu-24.04
        steps:
            - name: Checkout code
              uses: actions/checkout@v2

            - name: install dependencies
              run: npm install
              working-directory: src/store-front

            - name: build the package
              run: npm run build
              working-directory: src/store-front

            - name: Zip build output
              run: zip -r dist.zip src/store-front/dist/

            - name: Upload artifact
              uses: actions/upload-artifact@v4
              with:
                name: build-artifact
                path: dist.zip

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%