Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

install and use pnpm in the ci pipeline #2

install and use pnpm in the ci pipeline

install and use pnpm in the ci pipeline #2

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install PNPM
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Run Tests
run: pnpm test
- name: Build and Push Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/iam-fr-edition:latest -f docker/Dockerfile .
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_HUB_TOKEN }}
docker push ${{ secrets.DOCKER_USERNAME }}/iam-fr-edition:latest
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to Production
run: |
# The delpoment script is not implemented yet