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
